Files
sqlgen/docs
Dr. Patrick Urbanke 32b34df456 Improved documentation
2025-05-10 06:48:28 +02:00
..
2025-05-07 04:18:10 +02:00
2025-05-10 05:29:37 +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-10 06:48:28 +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::delete_from - How to delete data from a table.

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.