dbsync_app.get_database_copy()
Make a copy of the database for the current user/app.
Syntax
FUNCTION get_database_copy(
with_data BOOLEAN,
local_dbf STRING
)
RETURNS INTEGER
- with_data must be TRUE to get data, FALSE for empty DB to sync later on.
- local_dbf defines the local database file (SQLite).
Returns:
- The status.
Usage
The current schema must have been loaded with register_local_dbschema()
.