Expand description
Rust to SQL mapping support.
Like all of the
sql_entity_graph
APIs, this is considered internal to thepgrx
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§
- Aggregate
Type - Aggregate
Type Entity - Aggregate
Type List - Code
Enrichment - Control
File - The parsed contents of a
.control
file. - Extension
Sql - A parsed
extension_sql!()
item. - Extension
SqlEntity - The output of a
ExtensionSql
fromquote::ToTokens::to_tokens
. - Extension
SqlFile - A parsed
extension_sql_file!()
item. - Name
Macro - PgAggregate
- A parsed
#[pg_aggregate]
item. - PgAggregate
Entity - PgExtern
- A parsed
#[pg_extern]
item. - PgExtern
Argument - A parsed
#[pg_extern]
argument. - PgExtern
Argument Entity - The output of a
PgExternArgument
fromquote::ToTokens::to_tokens
. - PgExtern
Entity - The output of a
PgExtern
fromquote::ToTokens::to_tokens
. - PgExtern
Return Entity Iterated Item - PgOperator
- A parsed
#[pg_operator]
operator. - PgOperator
Entity - The output of a
PgOperator
fromquote::ToTokens::to_tokens
. - PgTrigger
- PgTrigger
Entity - PgrxSql
- A generator for SQL.
- Postgres
Enum - A parsed
#[derive(PostgresEnum)]
item. - Postgres
Enum Entity - The output of a
PostgresEnum
fromquote::ToTokens::to_tokens
. - Postgres
Hash - A parsed
#[derive(PostgresHash)]
item. - Postgres
Hash Entity - The output of a
PostgresHash
fromquote::ToTokens::to_tokens
. - Postgres
Ord - A parsed
#[derive(PostgresOrd)]
item. - Postgres
OrdEntity - The output of a
PostgresOrd
fromquote::ToTokens::to_tokens
. - Postgres
Type Derive - A parsed
#[derive(PostgresType)]
item. - Postgres
Type Entity - The output of a
PostgresType
fromquote::ToTokens::to_tokens
. - Rust
SqlMapping - A mapping from a Rust type to a SQL type, with a
TypeId
. - Schema
- A parsed
#[pg_schema] mod example {}
item. - Schema
Entity - The output of a
Schema
fromquote::ToTokens::to_tokens
. - ToSql
Config - A parsed
sql
option from apgrx
related procedural macro. - ToSql
Config Entity - Represents configuration options for tuning the SQL generator.
- Used
Type - A type, optionally with an overriding composite type name
- Used
Type Entity
Enums§
- Alignment
- Extern
Args - Finalize
Modify - Corresponds to the
FINALFUNC_MODIFY
andMFINALFUNC_MODIFY
inCREATE AGGREGATE
. - Parallel
Option - Corresponds to the
PARALLEL
andMFINALFUNC_MODIFY
inCREATE AGGREGATE
. - PgCast
- A parsed
#[pg_cast]
operator. - PgCast
Entity - The output of a
PgCast
fromquote::ToTokens::to_tokens
. - PgExtern
Return Entity - PgTrigger
Attribute - SqlDeclared
- SqlDeclared
Entity - SqlGraph
Entity - An entity corresponding to some SQL required by the extension.
Traits§
- SqlGraph
Identifier - Able to produce a GraphViz DOT format identifier.
- ToSql
- Able to be transformed into to SQL.
- Type
Identifiable - Type
Match
Functions§
- ident_
is_ acceptable_ to_ postgres - Validate that a given ident is acceptable to PostgreSQL
- parse_
extern_ attributes - type_
keyed