Examples for

DuckDB

24 examples, in learning order. DuckDB's driver needs cgo, so the stock sgl generates code only: migrate from your own program or a custom sgl build.

Parameters
$1 or :name
RETURNING
Supported
Go code for
database/sql
Migrations
Built in (DuckDB)
All about the DuckDB dialect

Getting started

3 examples

Types and nullability

4 examples

Dynamic queries

5 examples

Shaping results

5 examples

Writing data

3 examples

Connections and transactions

1 examples

Migrations and seeds

1 examples

Engine features

2 examples
Show 29 not available for DuckDB

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