Files
sqlgen/docs
2025-04-27 07:40:44 +02:00
..
2025-04-27 07:40:44 +02:00

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.