couchbaselabs / mobile-dart-flutter-plugin

1 stars 0 forks source link

Req - 17: Database.copy(from, name, config) #18

Closed Fujio-Turner closed 3 months ago

Fujio-Turner commented 11 months ago

WEB: See how couchbase lite core does Database.copy ….https://github.com/couchbase/couchbase-lite-core/tree/master ?????

ANSWER --Copies a canned database [from] the given path to a new database with the given [name] and [config]. The new database will be created at the directory specified in the [config]. --docs say to “It is recommended to close the source database before calling this method.” to maintain a “snapshoot of the DB before copying it.”

Could you double check how it does the copy as far as name of the copy???

MOBILE: https://docs.couchbase.com/mobile/3.0.15/couchbase-lite-c/C/html/group__database.html

Fujio-Turner commented 11 months ago

Looks like its used for when mobile application uses a Pre-Built Database. They pull the zipped CBL file down to a temp location and database.copy() it to a working location. Since the Web doesn't have a file db its not needed.

WEB: Not Needed