Crate pgrx_sql_entity_graph

Source
Expand description

Rust to SQL mapping support.

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

Re-exports§

pub use positioning_ref::PositioningRef;

Modules§

lifetimes
metadata
Function and type level metadata for Rust to SQL translation
positioning_ref
Positioning references for Rust to SQL mapping support.

Structs§

AggregateType
AggregateTypeEntity
AggregateTypeList
CodeEnrichment
ControlFile
The parsed contents of a .control file.
ExtensionSql
A parsed extension_sql!() item.
ExtensionSqlEntity
The output of a ExtensionSql from quote::ToTokens::to_tokens.
ExtensionSqlFile
A parsed extension_sql_file!() item.
NameMacro
PgAggregate
A parsed #[pg_aggregate] item.
PgAggregateEntity
PgExtern
A parsed #[pg_extern] item.
PgExternArgument
A parsed #[pg_extern] argument.
PgExternArgumentEntity
The output of a PgExternArgument from quote::ToTokens::to_tokens.
PgExternEntity
The output of a PgExtern from quote::ToTokens::to_tokens.
PgExternReturnEntityIteratedItem
PgOperator
A parsed #[pg_operator] operator.
PgOperatorEntity
The output of a PgOperator from quote::ToTokens::to_tokens.
PgTrigger
PgTriggerEntity
PgrxSql
A generator for SQL.
PostgresEnum
A parsed #[derive(PostgresEnum)] item.
PostgresEnumEntity
The output of a PostgresEnum from quote::ToTokens::to_tokens.
PostgresHash
A parsed #[derive(PostgresHash)] item.
PostgresHashEntity
The output of a PostgresHash from quote::ToTokens::to_tokens.
PostgresOrd
A parsed #[derive(PostgresOrd)] item.
PostgresOrdEntity
The output of a PostgresOrd from quote::ToTokens::to_tokens.
PostgresTypeDerive
A parsed #[derive(PostgresType)] item.
PostgresTypeEntity
The output of a PostgresType from quote::ToTokens::to_tokens.
RustSqlMapping
A mapping from a Rust type to a SQL type, with a TypeId.
Schema
A parsed #[pg_schema] mod example {} item.
SchemaEntity
The output of a Schema from quote::ToTokens::to_tokens.
ToSqlConfig
A parsed sql option from a pgrx related procedural macro.
ToSqlConfigEntity
Represents configuration options for tuning the SQL generator.
UsedType
A type, optionally with an overriding composite type name
UsedTypeEntity

Enums§

Alignment
ExternArgs
FinalizeModify
Corresponds to the FINALFUNC_MODIFY and MFINALFUNC_MODIFY in CREATE AGGREGATE.
ParallelOption
Corresponds to the PARALLEL and MFINALFUNC_MODIFY in CREATE AGGREGATE.
PgCast
A parsed #[pg_cast] operator.
PgCastEntity
The output of a PgCast from quote::ToTokens::to_tokens.
PgExternReturnEntity
PgTriggerAttribute
SqlDeclared
SqlDeclaredEntity
SqlGraphEntity
An entity corresponding to some SQL required by the extension.

Traits§

SqlGraphIdentifier
Able to produce a GraphViz DOT format identifier.
ToSql
Able to be transformed into to SQL.
TypeIdentifiable
TypeMatch

Functions§

ident_is_acceptable_to_postgres
Validate that a given ident is acceptable to PostgreSQL
parse_extern_attributes
type_keyed