You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strata accepts a directory path while creating on attaching to a B-Tree, is it also possible to give a name to the DB on creation.
Also this code that is found on your github page does not seem to create any file in the directory given, I mean it still shows empty.
function createOpenClose (directory, callback) {
var strata
create()
function create () {
strata = new Strata(directory)
strata.create(created)
}
function created (error) {
if (error) return callback(error)
strata.close(reopen)
}
function reopen (error) {
if (error) return callback(error)
strata = new Strata(directory)
strata.open(opened)
}
function open (error) {
if (error) return callback(error)
strata.close(callback)
}
}
createOpenClose(function (error) { if (error) throw error })
The text was updated successfully, but these errors were encountered:
Strata accepts a directory path while creating on attaching to a B-Tree, is it also possible to give a name to the DB on creation.
Also this code that is found on your github page does not seem to create any file in the directory given, I mean it still shows empty.
The text was updated successfully, but these errors were encountered: