Skip to main content

Module postgres

Module postgres 

Source
Expand description

PostgreSQL types.

  • types: zero-sized SQL type markers used for compile-time checks.
  • PostgreSQLType: column types as written in DDL, with their metadata.
  • TypeCategory: how a Rust field type maps to a PostgreSQL column.
  • PgTypeCategory: categories of SQL type names, used when parsing.
  • ddl: schema objects (tables, columns, indexes, …) for migrations.

Modules§

ddl
PostgreSQL schema objects (schemas, enums, sequences, roles, policies, privileges, tables, columns, indexes, constraints, views) for migrations.
types
Zero-sized SQL type markers for the PostgreSQL dialect.

Enums§

PgTypeCategory
The family of a PostgreSQL type declaration, such as varchar(255) or timestamp with time zone, ignoring arguments.
PostgreSQLType
A PostgreSQL column type as written in DDL.
TypeCategory
The kind of a Rust field type, for choosing a default PostgreSQL column type.