Skip to main content
Use these methods on any table. You’d select a table using 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 operators

Get all records

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)