Tour

The tour offers a quick introduction to the core concepts of sqlt and demonstrates how to use it across various scenarios.

1. Create statements

This simple example demonstrates how to execute SQL statements and map the results to Go structs using sqlt.

2. Load from file

Learn how to load SQL from a file and execute type-safe statements using sqlt.

3. Bulk insert

This example shows how to create statements for bulk inserts.

4. Transactions

This example shows how to use statements in transactions.

5. Custom Functions

How to use a custom Scanner.

6. Complex Query

This example shows how to build complex queries.

7. Multiple Databases

This example shows how to use sqlt with multiple databases.

8. Template Functions

This example shows all the predefined template functions.