db_dump
| Definition: | db_dump(integer fn, integer lowlevel) |
| Description: | Print the contents of an already-open Euphoria database. The contents are printed to file or device fn. All records in all tables are shown. If lowlevel is non-zero, then a low-level byte-by-byte dump is also shown. The low-level dump will only be meaningful to someone who is familiar with the internal format of a Euphoria database. |
| pwa/p2js: | Not supported |
| Example: |
if db_open("mydata", DB_LOCK_SHARED) != DB_OK then
puts(2, "Couldn't open the database!\n")
abort(1)
end if
fn = open("db.txt", "w")
db_dump(fn, 0)
|
| See Also: | db_open |