gadb is an ephemeral database used with gaql.

gadb is an ephemeral-database used with [gaql.][11] It provides database and table-related queries that follow the behaviour of [RethinkDB's][10] [rethinkdb-ts.][12]
[![npm][9]][7] [![agpl][2]][1]
``javascript
import gaql from 'gaql'
import * as queriescore from 'gaql/src/queries/core.js'
import * as queriesdb from 'gadb/src/queries/db.js'
const q = await gaql([
queriescore,
queriesdb
]).dbconnect([
['Users',
{ id: 'userId-1234', name: 'fred' },
{ id: 'userId-5678', name: 'jane' }],
['Rooms', [{ primaryKey: 'room_id' }],
{ room_id: 'roomId-1234', name: 'the room' }],
['Memberships', {
user_id: 'userId-1234',
room_membership_type: 'INVITE',
user_sender_id: 'userId-5678',
room_id: 'roomId-1234'
}]
])
await q.table('Memberships').indexCreate('user_id').run()
console.log(await q
.table('Memberships')
.getAll('userId-1234', { index: 'user_id' })
.eqJoin('room_id', q.table('Rooms'))('right')
.run())
// [{ room_id: 'roomId-1234', name: 'the room' }]
``
[1]: https://www.gnu.org/licenses/agpl.txt "AGPL-v3"
[2]: https://img.shields.io/badge/License-AGPLv3-blue.svg
[9]: https://img.shields.io/npm/v/gadb
[7]: https://www.npmjs.com/package/gadb "npm gaql package"
[10]: https://rethinkdb.com/docs/introduction-to-reql/ "introduction to reql"
[11]: https://codeberg.org/bumblehead/gaql
[12]: https://github.com/ronzeidman/rebirthdbts "rebirthdbts"