Module database

Module database 

Source
Expand description

Database struct and several common operations

Structs§

Database
Handle to a pool of database connections
DatabaseConfiguration
Configuration use in Database::connect.

Functions§

delete
This method is used to delete rows from a table.
insert
Inserts a single row.
insert_bulk
This method is used to bulk insert rows.
insert_bulk_returning
This method is used to bulk insert rows.
insert_returning
Inserts a single row and returns columns from it.
query
Executes a simple SELECT query.
update
This method is used to update rows in a table.

Type Aliases§

ColumnSelector
Type alias for SelectColumnData..
JoinTable
Type alias for JoinTableData.