postgres library
Optional PostgreSQL-specific parameter bindings for advanced integrations.
Classes
- InetConverter
- Stores textual IPv4/IPv6 addresses (optionally with CIDR prefix) as inet. Pair with DbType(postgres: 'inet'); other engines reject its native binding.
- NativeSqlValue
- Explicit opt-in PostgreSQL value understood only by its binding adapter. Other engines reject it with TikalUnsupportedException; no fallback changes native semantics. Converters copy array values before constructing this value.
- PostgresIntArrayConverter
- Stores a Dart integer list using PostgreSQL's native int4-array binding.
- PostgresTextArrayConverter
- Stores a Dart string list using PostgreSQL's native text-array binding.
Enums
- PostgresValueType
- PostgreSQL native binding choices, independent of any driver API.
Extensions
-
PostgresArrayPredicates
on ModelColumn<
T, List< V> > - Native PostgreSQL array predicates with typed, bound array values.
-
PostgresJsonPredicates
on ModelColumn<
T, V> - Native PostgreSQL JSON-path existence checks, with a bound path.
Functions
-
bindParameter(
Object? value, {int? position}) → Object? - Translates a user supplied parameter into the representation the PostgreSQL driver expects, inferring types for plain Dart values.
-
postgresDriverValue(
SqlParam param) → Object? -
Translates
paraminto the typed representation expected by the PostgreSQL driver.