mirror of
https://github.com/getml/sqlgen.git
synced 2025-12-31 06:30:18 -06:00
858 B
858 B
Documentation
Basics
Defining tables - How to define tables using C++ structs.
Reading - How to read data from a database.
Writing - How to write data to a database.
sqlgen::Result - How sqlgen handles errors.
sqlgen::PrimaryKey - How to define primary keys in sqlgen.
sqlgen::Timestamp - How timestamps work in sqlgen.
sqlgen::Varchar - How varchars work in sqlgen.
sqlgen::Flatten - How to "inherit" fields from other structs.
sqlgen::Literal - How to define fields that only allow for a fixed set of values.
Supported databases
postgres - How to interact with PostgreSQL or a related database (Redshift, Aurora, Greenplum...).
sqlite - How to interact with SQLite3.