Expand description

Rust to SQL mapping support.

Like all of the sql_entity_graph APIs, this is considered internal to the pgx framework and very subject to change between versions. While you may use this, please do it with caution.

Re-exports

pub use crate::ExternArgs;

Modules

Function and type level metadata for Rust to SQL translation

Structs

The parsed contents of a .control file.
A parsed extension_sql!() item.
The output of a ExtensionSql from quote::ToTokens::to_tokens.
A parsed extension_sql_file!() item.
A parsed #[pg_aggregate] item.
A parsed #[pg_extern] item.
A parsed #[pg_extern] argument.
The output of a PgExternArgument from quote::ToTokens::to_tokens.
The output of a PgExtern from quote::ToTokens::to_tokens.
A parsed #[pg_operator] operator.
The output of a PgOperator from quote::ToTokens::to_tokens.
A generator for SQL.
A parsed #[derive(PostgresEnum)] item.
The output of a PostgresEnum from quote::ToTokens::to_tokens.
A parsed #[derive(PostgresHash)] item.
The output of a PostgresHash from quote::ToTokens::to_tokens.
A parsed #[derive(PostgresOrd)] item.
The output of a PostgresOrd from quote::ToTokens::to_tokens.
A parsed #[derive(PostgresType)] item.
The output of a PostgresType from quote::ToTokens::to_tokens.
A mapping from a Rust source fragment to a SQL type, typically for type aliases.
A mapping from a Rust type to a SQL type, with a TypeId.
A parsed #[pg_schema] mod example {} item.
The output of a Schema from quote::ToTokens::to_tokens.
A parsed sql option from a pgx related procedural macro.
Represents configuration options for tuning the SQL generator.
A type, optionally with an overriding composite type name

Enums

Corresponds to the FINALFUNC_MODIFY and MFINALFUNC_MODIFY in CREATE AGGREGATE.
Corresponds to the PARALLEL and MFINALFUNC_MODIFY in CREATE AGGREGATE.
An entity corresponding to some SQL required by the extension.

Traits

Able to produce a GraphViz DOT format identifier.
Able to be transformed into to SQL.