Advanced
Closing a database
await database.close()Datastore v Database
const db = await datastore.getDb()const pouchDb = await db.getDb()Database info
const dbInfo = await database.info()
console.log(dbInfo){
type: 'VeridaDatabase',
privacy: 'encrypted',
did: 'did:vda:polyamoy:0x6B2a1bE81ee770cbB4648801e343E135e8D2Aa6F',
dsn: 'https://<username>:<password>@db.banksia.verida.io:5984',
storageContext: 'Verida Test: Test Application 1',
databaseName: 'SyncTestDb',
databaseHash: '<databaseHash>',
encryptionKey: Uint8Array(32) [
...
],
sync: {
canceled: true,
pull: { status: 'cancelled', canceled: undefined },
push: { status: 'cancelled', canceled: undefined }
}
}Last updated
Was this helpful?