Examples for

TimescaleDB

30 examples, in learning order. PostgreSQL plus hypertables, continuous aggregates and Timescale's functions.

Seagull generates the same code for TimescaleDB as for PostgreSQL, so most pages here show the PostgreSQL files, tested against TimescaleDB.

Parameters
$1 or :name
RETURNING
Supported
Go code for
database/sql, pgx
Migrations
Built in (PostgreSQL)
Driver
pgx
All about the TimescaleDB dialect

Getting started

4 examples

Types and nullability

5 examples

Dynamic queries

5 examples

Shaping results

5 examples

Writing data

3 examples

Connections and transactions

3 examples

Migrations and seeds

1 examples

Engine features

4 examples
Show 23 not available for TimescaleDB

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