db.from(*insert table name*), and chain it with any of the following methods:
getAll()get(id)add(value)update(id, value)replace(id, value)delete(id)
Make sure not to create any
id or created_at field since these are reserved and exist with every row. You can access them with the get operatorsGet all records
- Method:
getAll() - Returns: Query builder for chaining (see filtering and ordering for instructions)
Get by ID
- Method:
get(id) - Returns: Record object or throws if not found
Add a record
- Method:
add(value) - Returns: The newly added record
Update a record
- Method:
update(id, value)
Replace a record
- Method:
replace(id, value)
Delete a record
- Method:
delete(id)

