Skip to main content

Crate postgres_static_analyzer_ddl_catalog_structs

Crate postgres_static_analyzer_ddl_catalog_structs 

Source
Expand description

Struct definitions for all the postgres catalog tables that are DDL only, meaning only the tables and columns that describe the “schema” of the database are included. No oids, no transient server state or like clustering or tablespaces etc, and of course no actual table data.

oids pointing to other tables are translated to strings (as Str) representing their qualified name, using their “reg” cast if they have one, or are constructed manually using quote_ident if not. Objects that are contained in a namespace are prefixed with it, except for objects in the pg_catalog namespace due to the way search_path rules work.

Re-exports§

pub use ordered_float;

Structs§

AclItem
Access control items, similar to what you’d get if you called aclexplode, except that grants are grouped by grantee/grantor pairs.
DbState
A large wrapper struct that holds the results of all the other reflections. Only includes information for the single database, which is why pg_database isn’t a collection. Objects that are “cluster shared” such as roles are those for the entire cluster.
Grant
PgAggregate
The DDL-only contents of pg_aggregate
PgAm
The DDL-only contents of pg_am
PgAmop
The DDL-only contents of pg_amop
PgAmproc
The DDL-only contents of pg_amproc
PgAttrdef
The DDL-only contents of pg_attrdef
PgAttribute
The DDL-only contents of pg_attribute
PgAuthMembers
The DDL-only contents of pg_auth_members
PgCast
The DDL-only contents of pg_cast
PgClass
The DDL-only contents of pg_class
PgCollation
The DDL-only contents of pg_collation
PgConstraint
The DDL-only contents of pg_constraint
PgConversion
The DDL-only contents of pg_conversion
PgDatabase
The DDL-only contents of pg_database
PgDbRoleSetting
The DDL-only contents of pg_db_role_setting
PgDefaultAcl
The DDL-only contents of pg_default_acl
PgEnum
The DDL-only contents of pg_enum
PgEventTrigger
The DDL-only contents of pg_event_trigger
PgExtension
The DDL-only contents of pg_extension
PgForeignDataWrapper
The DDL-only contents of pg_foreign_data_wrapper
PgForeignServer
The DDL-only contents of pg_foreign_server
PgForeignTable
The DDL-only contents of pg_foreign_table
PgIndex
The DDL-only contents of pg_index
PgInherits
The DDL-only contents of pg_inherits
PgLanguage
The DDL-only contents of pg_language
PgMatviews
The DDL-only contents of pg_matviews
PgNamespace
The DDL-only contents of pg_namespace
PgOpclass
The DDL-only contents of pg_opclass
PgOperator
The DDL-only contents of pg_operator
PgOpfamily
The DDL-only contents of pg_opfamily
PgParameterAcl
The DDL-only contents of pg_parameter_acl
PgPartitionedTable
The DDL-only contents of pg_partitioned_table
PgPolicy
The DDL-only contents of pg_policy
PgProc
The DDL-only contents of pg_proc
PgPublication
The DDL-only contents of pg_publication
PgPublicationNamespace
The DDL-only contents of pg_publication_namespace
PgPublicationRel
The DDL-only contents of pg_publication_rel
PgRange
The DDL-only contents of pg_range
PgRoles
The DDL-only contents of pg_roles
PgRules
The DDL-only contents of pg_rules
PgSequence
The DDL-only contents of pg_sequence
PgStatisticExt
The DDL-only contents of pg_statistic_ext
PgSubscription
The DDL-only contents of pg_subscription
PgTransform
The DDL-only contents of pg_transform
PgTrigger
The DDL-only contents of pg_trigger
PgTsConfig
The DDL-only contents of pg_ts_config
PgTsConfigMap
The DDL-only contents of pg_ts_config_map
PgTsDict
The DDL-only contents of pg_ts_dict
PgTsParser
The DDL-only contents of pg_ts_parser
PgTsTemplate
The DDL-only contents of pg_ts_template
PgType
The DDL-only contents of pg_type
PgUserMappings
The DDL-only contents of pg_user_mappings
PgViews
The DDL-only contents of pg_views
Str
A SmolStr is a string type that has the following properties:

Enums§

AclDefaultAclPrivilege
DbAclPrivilege
ForeignDataWrapperAclPrivilege
ForeignServerAclPrivilege
FunctionAclPrivilege
LanguageAclPrivilege
ParameterAclPrivilege
PgAggregateAggfinalmodify
PgAggregateAggkind
PgAggregateAggmfinalmodify
PgAmAmtype
PgAmopAmoppurpose
PgAttributeAttcompression
PgAttributeAttgenerated
PgAttributeAttidentity
PgAttributeInitprivsType
PgCastCastcontext
PgCastCastmethod
PgClassInitprivsType
PgClassRelkind
PgClassRelpersistence
PgClassRelreplident
PgCollationCollprovider
PgConstraintConfdeltype
PgConstraintConfmatchtype
PgConstraintConfupdtype
PgConstraintContype
PgDatabaseDatlocprovider
PgDefaultAclDefaclobjtype
PgEventTriggerEvtenabled
PgForeignDataWrapperInitprivsType
PgForeignServerInitprivsType
PgLanguageInitprivsType
PgNamespaceInitprivsType
PgOperatorOprkind
PgParameterAclInitprivsType
PgPartitionedTablePartstrat
PgPolicyPolcmd
PgProcProargmodes
PgProcProkind
PgProcProparallel
PgProcProvolatile
PgStatisticExtStxkind
PgSubscriptionSubstream
PgSubscriptionSubtwophasestate
PgTriggerTgenabled
PgTypeInitprivsType
PgTypeTypalign
PgTypeTypstorage
PgTypeTyptype
SchemaAclPrivilege
TableAclPrivilege
TableColumnAclPrivilege
TypeAclPrivilege

Type Aliases§

AclDefaultAclItem
AclDefaultGrant
DbAclItem
DbGrant
ForeignDataWrapperAclItem
ForeignDataWrapperGrant
ForeignServerAclItem
ForeignServerGrant
FunctionAclItem
FunctionGrant
LanguageAclItem
LanguageGrant
Map
ParameterAclItem
ParameterGrant
SchemaAclItem
SchemaGrant
Set
TableAclItem
TableColumnAclItem
TableColumnGrant
TableGrant
TypeAclItem
TypeGrant