Examples for

SQLite

41 examples, in learning order. 23 run fully in your browser. Type affinity is mapped to Go types; the stock driver is pure Go.

Parameters
?1 or :name, @name, $name
RETURNING
Supported
Go code for
database/sql
Migrations
Built in (SQLite)
Driver
modernc.org/sqlite
All about the SQLite dialect

Getting started

4 examples

Types and nullability

3 examples

Dynamic queries

5 examples

Shaping results

5 examples

Writing data

3 examples

Connections and transactions

4 examples

Migrations and seeds

3 examples

Engine features

1 examples

Tooling

5 examples

Embedding Seagull

8 examples
Show 12 not available for SQLite

Some ideas belong to other engines, and some need a feature SQLite does not have. Each one says why, and where to read it instead.