drift_postgres library

PostgreSQL backend for drift.

For more information on how to use this package, see https://drift.simonbinder.eu/docs/platforms/postgres/.

Classes

PgDatabase
A drift database implementation that talks to a postgres database.
PgDate
A wrapper for the Postgres date type, which stores dates (year, month, days).
PgDateTime
A wrapper for values with the Postgres timestamp without timezone and timestamp with timezone types.
PgTypes
Provides custom types to enable the use of Postgres-specific types in drift databases.
UuidValue

Extensions

ArrayExpressions on Expression<List<T?>>
Exposes expression builders for array types in postgres.

Functions

genRandomUuid() → Expression<UuidValue>
Calls the gen_random_uuid function in postgres.
now() → Expression<PgDateTime>
Calls the NOW() function in postgres.

Typedefs

IntervalColumn = Column<Duration>
Type for columns storing Durations as intervals.
JsonColumn = Column<Object>
Type for columns storing JSON structures.
PgDateColumn = Column<PgDate>
Type for columns storing dates directly as (PgDate).
PointColumn = Column<Point>
Type for columns storing PgPoints.
TimestampColumn = Column<PgDateTime>
Type for columns storing dates directly as (PgDateTime).
UuidColumn = Column<UuidValue>
Type for columns storing UuidValues.