Files
sqlgen/docs
2025-05-09 18:17:18 +02:00
..
2025-05-07 04:18:10 +02:00
2025-05-07 04:46:10 +02:00
2025-05-08 03:57:12 +02:00
2025-05-07 04:18:10 +02:00
2025-05-08 03:57:12 +02:00
2025-05-07 04:18:10 +02:00
2025-05-07 04:18:10 +02:00

Documentation

Basics

Defining tables - How to define tables using C++ structs.

sqlgen::read - How to read data from a database.

sqlgen::write - 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::Pattern - How to add regex pattern validation to avoid SQL injection.

Supported databases

postgres - How to interact with PostgreSQL or a related database (Redshift, Aurora, Greenplum...).

sqlite - How to interact with SQLite3.