• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with cdb_sync - What is the local table?
#6
(09-08-2020, 08:13 PM)efrain.c Wrote: Hi stamatis,

cdb_createTable (https://docs.livecloud.io/CreateTable/) does not have a parameter for "local" or "cloud" and requires internet access so you cannot create local tables. All tables are created on the cloud and a config file defines your table structure on disk. The LiveCloud Toolkit has the config files that contains the structure of your project and all the tables in it. Because of this, cdb_create and cdb_sync can only be used on tables that already exist on the cloud.

Thanks efrain.c - ok that's beginning to make sense then. 
In effect it's only possible to create databases in the cloud and to have local database these would have to to be synced to local with cdb_sync or cdb_batchsync?


Just a question about standalone LiveCloud apps with local DBs then 
The copied CanelaDB folder will be included at root folder of the app and will contain the local database, but this may not be a writeable location which would make it a read-only presumably.

If there is no internet access, what would be the strategy to maintain a local DB, if that's even possible? Can the CanelaDB be maintained in a writeable location such as Documents?
  Reply


Messages In This Thread
RE: Help with cdb_sync - What is the local table? - by stamatis - 09-09-2020, 12:09 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)