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
  1. with_data must be TRUE to get data, FALSE for empty DB to sync later on.
  2. local_dbf defines the local database file (SQLite).
Returns:
  1. The status.

Usage

The current schema must have been loaded with register_local_dbschema().