Changeset 6141 for trunk/PERL2ARB/DOC.html
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/PERL2ARB/DOC.html (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PERL2ARB/DOC.html
r2273 r6141 53 53 ... 54 54 ARB:commit_transaction($gb_main); // everything is ok 55 $error = ARB::save($gb_main,"new_db.arb", "a"); // save in ascii f rmt55 $error = ARB::save($gb_main,"new_db.arb", "a"); // save in ascii format 56 56 57 57 ***************************** END 1 ********************* … … 253 253 a ascii format 254 254 b binary format 255 Only if you have opened a database on a file you r are allowd to255 Only if you have opened a database on a file you are allowed to 256 256 save it, otherwise the server has to do it. 257 257 You may not change the path of the database, it is used … … 267 267 268 268 $error = ARB::save_quick_as($gb_main,"new path"); 269 Fake an existing database by create a symboli klink and269 Fake an existing database by create a symbolic link and 270 270 then call ARB::save_quick 271 271 … … 287 287 Increments an internal counter. If the counter was previously 288 288 0 then calls begin_transaction. This is usefull when working 289 in a s oubroutine and not knowing whether your calling funtion289 in a subroutine and not knowing whether your calling function 290 290 had opened a transaction already. 291 291 $error = ARB::pop_transaction($gb_main); … … 313 313 search a database element if all keys are unique 314 314 315 $gb_xxx = ARB::find($gb_start_s ourch_point, "[key]", "[value]",315 $gb_xxx = ARB::find($gb_start_search_point, "[key]", "[value]", 316 316 "search_mode" 317 317 … … 344 344 $val = ARB::read_bits($gb_xxx,char_0,char_1); 345 345 convert a bit array into a string, 346 a '0' will be converte tinto char_0346 a '0' will be converted into char_0 347 347 a '1' into char_1 348 348 … … 362 362 // char_0 will converted to 1 else 0 363 363 364 $error = ARB::write_as_string($gb_xxx); try to interpret ethe value and364 $error = ARB::write_as_string($gb_xxx); try to interpret the value and 365 365 // convert it automatically to the right 366 366 // format … … 422 422 $error = ARB::set_temporary($gb_xxx); 423 423 Marks a field in the database as a temporary field. 424 That means that this fiel sis never saved to a file.424 That means that this field is never saved to a file. 425 425 $error = ARB::clear_temporary($gb_xxx); 426 426 Clears tmp flag … … 502 502 $time = ARB::last_saved_clock($gb_main); 503 503 transaction number when the database was last saved 504 Can only be called from the server program m504 Can only be called from the server program 505 505 506 506 $time = ARB::last_saved_time($gb_main); … … 509 509 $error = ARB::set_cache_size($gb_main, "size_in_bytes"); 510 510 ARB uses datacompression for long strings. If some strings 511 are used very intens ivly the program bay slow down.511 are used very intensely the program may slow down. 512 512 Therefor a small cache is used and it's size can be set 513 513 by this function. If you are working with sequences, a value
