Enum PostgresErrorCode

Source
#[non_exhaustive]
pub enum PostgresErrorCode {
Show 258 variants SuccessfulCompletion, Warning, DynamicResultSetsReturned, ImplicitZeroBitPadding, NullValueEliminatedInSetFunction, PrivilegeNotGranted, PrivilegeNotRevoked, StringDataRightTruncation01004, DeprecatedFeature, NoData, NoAdditionalDynamicResultSetsReturned, SqlStatementNotYetComplete, ConnectionException, ConnectionDoesNotExist, ConnectionFailure, SqlclientUnableToEstablishSqlconnection, SqlserverRejectedEstablishmentOfSqlconnection, TransactionResolutionUnknown, ProtocolViolation, TriggeredActionException, FeatureNotSupported, InvalidTransactionInitiation, LocatorException, InvalidLocatorSpecification, InvalidGrantor, InvalidGrantOperation, InvalidRoleSpecification, DiagnosticsException, StackedDiagnosticsAccessedWithoutActiveHandler, CaseNotFound, CardinalityViolation, DataException, ArraySubscriptError, CharacterNotInRepertoire, DatetimeFieldOverflow, DivisionByZero, ErrorInAssignment, EscapeCharacterConflict, IndicatorOverflow, IntervalFieldOverflow, InvalidArgumentForLogarithm, InvalidArgumentForNtileFunction, InvalidArgumentForNthValueFunction, InvalidArgumentForPowerFunction, InvalidArgumentForWidthBucketFunction, InvalidCharacterValueForCast, InvalidDatetimeFormat, InvalidEscapeCharacter, InvalidEscapeOctet, InvalidEscapeSequence, NonstandardUseOfEscapeCharacter, InvalidIndicatorParameterValue, InvalidParameterValue, InvalidPrecedingOrFollowingSize, InvalidRegularExpression, InvalidRowCountInLimitClause, InvalidRowCountInResultOffsetClause, InvalidTablesampleArgument, InvalidTablesampleRepeat, InvalidTimeZoneDisplacementValue, InvalidUseOfEscapeCharacter, MostSpecificTypeMismatch, NullValueNotAllowed22004, NullValueNoIndicatorParameter, NumericValueOutOfRange, SequenceGeneratorLimitExceeded, StringDataLengthMismatch, StringDataRightTruncation22001, SubstringError, TrimError, UnterminatedCString, ZeroLengthCharacterString, FloatingPointException, InvalidTextRepresentation, InvalidBinaryRepresentation, BadCopyFileFormat, UntranslatableCharacter, NotAnXmlDocument, InvalidXmlDocument, InvalidXmlContent, InvalidXmlComment, InvalidXmlProcessingInstruction, DuplicateJsonObjectKeyValue, InvalidArgumentForSqlJsonDatetimeFunction, InvalidJsonText, InvalidSqlJsonSubscript, MoreThanOneSqlJsonItem, NoSqlJsonItem, NonNumericSqlJsonItem, NonUniqueKeysInAJsonObject, SingletonSqlJsonItemRequired, SqlJsonArrayNotFound, SqlJsonMemberNotFound, SqlJsonNumberNotFound, SqlJsonObjectNotFound, TooManyJsonArrayElements, TooManyJsonObjectMembers, SqlJsonScalarRequired, IntegrityConstraintViolation, RestrictViolation, NotNullViolation, ForeignKeyViolation, UniqueViolation, CheckViolation, ExclusionViolation, InvalidCursorState, InvalidTransactionState, ActiveSqlTransaction, BranchTransactionAlreadyActive, HeldCursorRequiresSameIsolationLevel, InappropriateAccessModeForBranchTransaction, InappropriateIsolationLevelForBranchTransaction, NoActiveSqlTransactionForBranchTransaction, ReadOnlySqlTransaction, SchemaAndDataStatementMixingNotSupported, NoActiveSqlTransaction, InFailedSqlTransaction, IdleInTransactionSessionTimeout, InvalidSqlStatementName, TriggeredDataChangeViolation, InvalidAuthorizationSpecification, InvalidPassword, DependentPrivilegeDescriptorsStillExist, DependentObjectsStillExist, InvalidTransactionTermination, SqlRoutineException, FunctionExecutedNoReturnStatement, ModifyingSqlDataNotPermitted2F002, ProhibitedSqlStatementAttempted2F003, ReadingSqlDataNotPermitted2F004, InvalidCursorName, ExternalRoutineException, ContainingSqlNotPermitted, ModifyingSqlDataNotPermitted38002, ProhibitedSqlStatementAttempted38003, ReadingSqlDataNotPermitted38004, ExternalRoutineInvocationException, InvalidSqlstateReturned, NullValueNotAllowed39004, TriggerProtocolViolated, SrfProtocolViolated, EventTriggerProtocolViolated, SavepointException, InvalidSavepointSpecification, InvalidCatalogName, InvalidSchemaName, TransactionRollback, TransactionIntegrityConstraintViolation, SerializationFailure, StatementCompletionUnknown, DeadlockDetected, SyntaxErrorOrAccessRuleViolation, SyntaxError, InsufficientPrivilege, CannotCoerce, GroupingError, WindowingError, InvalidRecursion, InvalidForeignKey, InvalidName, NameTooLong, ReservedName, DatatypeMismatch, IndeterminateDatatype, CollationMismatch, IndeterminateCollation, WrongObjectType, GeneratedAlways, UndefinedColumn, UndefinedFunction, UndefinedTable, UndefinedParameter, UndefinedObject, DuplicateColumn, DuplicateCursor, DuplicateDatabase, DuplicateFunction, DuplicatePreparedStatement, DuplicateSchema, DuplicateTable, DuplicateAlias, DuplicateObject, AmbiguousColumn, AmbiguousFunction, AmbiguousParameter, AmbiguousAlias, InvalidColumnReference, InvalidColumnDefinition, InvalidCursorDefinition, InvalidDatabaseDefinition, InvalidFunctionDefinition, InvalidPreparedStatementDefinition, InvalidSchemaDefinition, InvalidTableDefinition, InvalidObjectDefinition, WithCheckOptionViolation, InsufficientResources, DiskFull, OutOfMemory53200, TooManyConnections, ConfigurationLimitExceeded, ProgramLimitExceeded, StatementTooComplex, TooManyColumns, TooManyArguments, ObjectNotInPrerequisiteState, ObjectInUse, CantChangeRuntimeParam, LockNotAvailable, UnsafeNewEnumValueUsage, OperatorIntervention, QueryCanceled, AdminShutdown, CrashShutdown, CannotConnectNow, DatabaseDropped, SystemError, IoError, UndefinedFile, DuplicateFile, SnapshotTooOld, ConfigFileError, LockFileExists, FdwError, FdwColumnNameNotFound, FdwDynamicParameterValueNeeded, FdwFunctionSequenceError, FdwInconsistentDescriptorInformation, FdwInvalidAttributeValue, FdwInvalidColumnName, FdwInvalidColumnNumber, FdwInvalidDataType, FdwInvalidDataTypeDescriptors, FdwInvalidDescriptorFieldIdentifier, FdwInvalidHandle, FdwInvalidOptionIndex, FdwInvalidOptionName, FdwInvalidStringLengthOrBufferLength, FdwInvalidStringFormat, FdwInvalidUseOfNullPointer, FdwTooManyHandles, OutOfMemoryHV001, FdwNoSchemas, FdwOptionNameNotFound, FdwReplyHandle, FdwSchemaNotFound, FdwTableNotFound, FdwUnableToCreateExecution, FdwUnableToCreateReply, FdwUnableToEstablishConnection, PlpgsqlError, RaiseException, NoDataFound, TooManyRows, AssertFailure, InternalError, DataCorrupted, IndexCorrupted,
}
Expand description

Represents all possible PostgreSQL error codes as defined in Table A.1.

Each variant corresponds to a specific Condition Name from the PostgreSQL documentation. This enum provides a type-safe way to handle and match on specific SQLSTATE error codes.

See: https://www.postgresql.org/docs/13/errcodes-appendix.html.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

SuccessfulCompletion

Code 00000: successful_completion

§

Warning

Code 01000: warning

§

DynamicResultSetsReturned

Code 0100C: dynamic_result_sets_returned

§

ImplicitZeroBitPadding

Code 01008: implicit_zero_bit_padding

§

NullValueEliminatedInSetFunction

Code 01003: null_value_eliminated_in_set_function

§

PrivilegeNotGranted

Code 01007: privilege_not_granted

§

PrivilegeNotRevoked

Code 01006: privilege_not_revoked

§

StringDataRightTruncation01004

Code 01004: string_data_right_truncation

§

DeprecatedFeature

Code 01P01: deprecated_feature

§

NoData

Code 02000: no_data

§

NoAdditionalDynamicResultSetsReturned

Code 02001: no_additional_dynamic_result_sets_returned

§

SqlStatementNotYetComplete

Code 03000: sql_statement_not_yet_complete

§

ConnectionException

Code 08000: connection_exception

§

ConnectionDoesNotExist

Code 08003: connection_does_not_exist

§

ConnectionFailure

Code 08006: connection_failure

§

SqlclientUnableToEstablishSqlconnection

Code 08001: sqlclient_unable_to_establish_sqlconnection

§

SqlserverRejectedEstablishmentOfSqlconnection

Code 08004: sqlserver_rejected_establishment_of_sqlconnection

§

TransactionResolutionUnknown

Code 08007: transaction_resolution_unknown

§

ProtocolViolation

Code 08P01: protocol_violation

§

TriggeredActionException

Code 09000: triggered_action_exception

§

FeatureNotSupported

Code 0A000: feature_not_supported

§

InvalidTransactionInitiation

Code 0B000: invalid_transaction_initiation

§

LocatorException

Code 0F000: locator_exception

§

InvalidLocatorSpecification

Code 0F001: invalid_locator_specification

§

InvalidGrantor

Code 0L000: invalid_grantor

§

InvalidGrantOperation

Code 0LP01: invalid_grant_operation

§

InvalidRoleSpecification

Code 0P000: invalid_role_specification

§

DiagnosticsException

Code 0Z000: diagnostics_exception

§

StackedDiagnosticsAccessedWithoutActiveHandler

Code 0Z002: stacked_diagnostics_accessed_without_active_handler

§

CaseNotFound

Code 20000: case_not_found

§

CardinalityViolation

Code 21000: cardinality_violation

§

DataException

Code 22000: data_exception

§

ArraySubscriptError

Code 2202E: array_subscript_error

§

CharacterNotInRepertoire

Code 22021: character_not_in_repertoire

§

DatetimeFieldOverflow

Code 22008: datetime_field_overflow

§

DivisionByZero

Code 22012: division_by_zero

§

ErrorInAssignment

Code 22005: error_in_assignment

§

EscapeCharacterConflict

Code 2200B: escape_character_conflict

§

IndicatorOverflow

Code 22022: indicator_overflow

§

IntervalFieldOverflow

Code 22015: interval_field_overflow

§

InvalidArgumentForLogarithm

Code 2201E: invalid_argument_for_logarithm

§

InvalidArgumentForNtileFunction

Code 22014: invalid_argument_for_ntile_function

§

InvalidArgumentForNthValueFunction

Code 22016: invalid_argument_for_nth_value_function

§

InvalidArgumentForPowerFunction

Code 2201F: invalid_argument_for_power_function

§

InvalidArgumentForWidthBucketFunction

Code 2201G: invalid_argument_for_width_bucket_function

§

InvalidCharacterValueForCast

Code 22018: invalid_character_value_for_cast

§

InvalidDatetimeFormat

Code 22007: invalid_datetime_format

§

InvalidEscapeCharacter

Code 22019: invalid_escape_character

§

InvalidEscapeOctet

Code 2200D: invalid_escape_octet

§

InvalidEscapeSequence

Code 22025: invalid_escape_sequence

§

NonstandardUseOfEscapeCharacter

Code 22P06: nonstandard_use_of_escape_character

§

InvalidIndicatorParameterValue

Code 22010: invalid_indicator_parameter_value

§

InvalidParameterValue

Code 22023: invalid_parameter_value

§

InvalidPrecedingOrFollowingSize

Code 22013: invalid_preceding_or_following_size

§

InvalidRegularExpression

Code 2201B: invalid_regular_expression

§

InvalidRowCountInLimitClause

Code 2201W: invalid_row_count_in_limit_clause

§

InvalidRowCountInResultOffsetClause

Code 2201X: invalid_row_count_in_result_offset_clause

§

InvalidTablesampleArgument

Code 2202H: invalid_tablesample_argument

§

InvalidTablesampleRepeat

Code 2202G: invalid_tablesample_repeat

§

InvalidTimeZoneDisplacementValue

Code 22009: invalid_time_zone_displacement_value

§

InvalidUseOfEscapeCharacter

Code 2200C: invalid_use_of_escape_character

§

MostSpecificTypeMismatch

Code 2200G: most_specific_type_mismatch

§

NullValueNotAllowed22004

Code 22004: null_value_not_allowed

§

NullValueNoIndicatorParameter

Code 22002: null_value_no_indicator_parameter

§

NumericValueOutOfRange

Code 22003: numeric_value_out_of_range

§

SequenceGeneratorLimitExceeded

Code 2200H: sequence_generator_limit_exceeded

§

StringDataLengthMismatch

Code 22026: string_data_length_mismatch

§

StringDataRightTruncation22001

Code 22001: string_data_right_truncation

§

SubstringError

Code 22011: substring_error

§

TrimError

Code 22027: trim_error

§

UnterminatedCString

Code 22024: unterminated_c_string

§

ZeroLengthCharacterString

Code 2200F: zero_length_character_string

§

FloatingPointException

Code 22P01: floating_point_exception

§

InvalidTextRepresentation

Code 22P02: invalid_text_representation

§

InvalidBinaryRepresentation

Code 22P03: invalid_binary_representation

§

BadCopyFileFormat

Code 22P04: bad_copy_file_format

§

UntranslatableCharacter

Code 22P05: untranslatable_character

§

NotAnXmlDocument

Code 2200L: not_an_xml_document

§

InvalidXmlDocument

Code 2200M: invalid_xml_document

§

InvalidXmlContent

Code 2200N: invalid_xml_content

§

InvalidXmlComment

Code 2200S: invalid_xml_comment

§

InvalidXmlProcessingInstruction

Code 2200T: invalid_xml_processing_instruction

§

DuplicateJsonObjectKeyValue

Code 22030: duplicate_json_object_key_value

§

InvalidArgumentForSqlJsonDatetimeFunction

Code 22031: invalid_argument_for_sql_json_datetime_function

§

InvalidJsonText

Code 22032: invalid_json_text

§

InvalidSqlJsonSubscript

Code 22033: invalid_sql_json_subscript

§

MoreThanOneSqlJsonItem

Code 22034: more_than_one_sql_json_item

§

NoSqlJsonItem

Code 22035: no_sql_json_item

§

NonNumericSqlJsonItem

Code 22036: non_numeric_sql_json_item

§

NonUniqueKeysInAJsonObject

Code 22037: non_unique_keys_in_a_json_object

§

SingletonSqlJsonItemRequired

Code 22038: singleton_sql_json_item_required

§

SqlJsonArrayNotFound

Code 22039: sql_json_array_not_found

§

SqlJsonMemberNotFound

Code 2203A: sql_json_member_not_found

§

SqlJsonNumberNotFound

Code 2203B: sql_json_number_not_found

§

SqlJsonObjectNotFound

Code 2203C: sql_json_object_not_found

§

TooManyJsonArrayElements

Code 2203D: too_many_json_array_elements

§

TooManyJsonObjectMembers

Code 2203E: too_many_json_object_members

§

SqlJsonScalarRequired

Code 2203F: sql_json_scalar_required

§

IntegrityConstraintViolation

Code 23000: integrity_constraint_violation

§

RestrictViolation

Code 23001: restrict_violation

§

NotNullViolation

Code 23502: not_null_violation

§

ForeignKeyViolation

Code 23503: foreign_key_violation

§

UniqueViolation

Code 23505: unique_violation

§

CheckViolation

Code 23514: check_violation

§

ExclusionViolation

Code 23P01: exclusion_violation

§

InvalidCursorState

Code 24000: invalid_cursor_state

§

InvalidTransactionState

Code 25000: invalid_transaction_state

§

ActiveSqlTransaction

Code 25001: active_sql_transaction

§

BranchTransactionAlreadyActive

Code 25002: branch_transaction_already_active

§

HeldCursorRequiresSameIsolationLevel

Code 25008: held_cursor_requires_same_isolation_level

§

InappropriateAccessModeForBranchTransaction

Code 25003: inappropriate_access_mode_for_branch_transaction

§

InappropriateIsolationLevelForBranchTransaction

Code 25004: inappropriate_isolation_level_for_branch_transaction

§

NoActiveSqlTransactionForBranchTransaction

Code 25005: no_active_sql_transaction_for_branch_transaction

§

ReadOnlySqlTransaction

Code 25006: read_only_sql_transaction

§

SchemaAndDataStatementMixingNotSupported

Code 25007: schema_and_data_statement_mixing_not_supported

§

NoActiveSqlTransaction

Code 25P01: no_active_sql_transaction

§

InFailedSqlTransaction

Code 25P02: in_failed_sql_transaction

§

IdleInTransactionSessionTimeout

Code 25P03: idle_in_transaction_session_timeout

§

InvalidSqlStatementName

Code 26000: invalid_sql_statement_name

§

TriggeredDataChangeViolation

Code 27000: triggered_data_change_violation

§

InvalidAuthorizationSpecification

Code 28000: invalid_authorization_specification

§

InvalidPassword

Code 28P01: invalid_password

§

DependentPrivilegeDescriptorsStillExist

Code 2B000: dependent_privilege_descriptors_still_exist

§

DependentObjectsStillExist

Code 2BP01: dependent_objects_still_exist

§

InvalidTransactionTermination

Code 2D000: invalid_transaction_termination

§

SqlRoutineException

Code 2F000: sql_routine_exception

§

FunctionExecutedNoReturnStatement

Code 2F005: function_executed_no_return_statement

§

ModifyingSqlDataNotPermitted2F002

Code 2F002: modifying_sql_data_not_permitted

§

ProhibitedSqlStatementAttempted2F003

Code 2F003: prohibited_sql_statement_attempted

§

ReadingSqlDataNotPermitted2F004

Code 2F004: reading_sql_data_not_permitted

§

InvalidCursorName

Code 34000: invalid_cursor_name

§

ExternalRoutineException

Code 38000: external_routine_exception

§

ContainingSqlNotPermitted

Code 38001: containing_sql_not_permitted

§

ModifyingSqlDataNotPermitted38002

Code 38002: modifying_sql_data_not_permitted

§

ProhibitedSqlStatementAttempted38003

Code 38003: prohibited_sql_statement_attempted

§

ReadingSqlDataNotPermitted38004

Code 38004: reading_sql_data_not_permitted

§

ExternalRoutineInvocationException

Code 39000: external_routine_invocation_exception

§

InvalidSqlstateReturned

Code 39001: invalid_sqlstate_returned

§

NullValueNotAllowed39004

Code 39004: null_value_not_allowed

§

TriggerProtocolViolated

Code 39P01: trigger_protocol_violated

§

SrfProtocolViolated

Code 39P02: srf_protocol_violated

§

EventTriggerProtocolViolated

Code 39P03: event_trigger_protocol_violated

§

SavepointException

Code 3B000: savepoint_exception

§

InvalidSavepointSpecification

Code 3B001: invalid_savepoint_specification

§

InvalidCatalogName

Code 3D000: invalid_catalog_name

§

InvalidSchemaName

Code 3F000: invalid_schema_name

§

TransactionRollback

Code 40000: transaction_rollback

§

TransactionIntegrityConstraintViolation

Code 40002: transaction_integrity_constraint_violation

§

SerializationFailure

Code 40001: serialization_failure

§

StatementCompletionUnknown

Code 40003: statement_completion_unknown

§

DeadlockDetected

Code 40P01: deadlock_detected

§

SyntaxErrorOrAccessRuleViolation

Code 42000: syntax_error_or_access_rule_violation

§

SyntaxError

Code 42601: syntax_error

§

InsufficientPrivilege

Code 42501: insufficient_privilege

§

CannotCoerce

Code 42846: cannot_coerce

§

GroupingError

Code 42803: grouping_error

§

WindowingError

Code 42P20: windowing_error

§

InvalidRecursion

Code 42P19: invalid_recursion

§

InvalidForeignKey

Code 42830: invalid_foreign_key

§

InvalidName

Code 42602: invalid_name

§

NameTooLong

Code 42622: name_too_long

§

ReservedName

Code 42939: reserved_name

§

DatatypeMismatch

Code 42804: datatype_mismatch

§

IndeterminateDatatype

Code 42P18: indeterminate_datatype

§

CollationMismatch

Code 42P21: collation_mismatch

§

IndeterminateCollation

Code 42P22: indeterminate_collation

§

WrongObjectType

Code 42809: wrong_object_type

§

GeneratedAlways

Code 428C9: generated_always

§

UndefinedColumn

Code 42703: undefined_column

§

UndefinedFunction

Code 42883: undefined_function

§

UndefinedTable

Code 42P01: undefined_table

§

UndefinedParameter

Code 42P02: undefined_parameter

§

UndefinedObject

Code 42704: undefined_object

§

DuplicateColumn

Code 42701: duplicate_column

§

DuplicateCursor

Code 42P03: duplicate_cursor

§

DuplicateDatabase

Code 42P04: duplicate_database

§

DuplicateFunction

Code 42723: duplicate_function

§

DuplicatePreparedStatement

Code 42P05: duplicate_prepared_statement

§

DuplicateSchema

Code 42P06: duplicate_schema

§

DuplicateTable

Code 42P07: duplicate_table

§

DuplicateAlias

Code 42712: duplicate_alias

§

DuplicateObject

Code 42710: duplicate_object

§

AmbiguousColumn

Code 42702: ambiguous_column

§

AmbiguousFunction

Code 42725: ambiguous_function

§

AmbiguousParameter

Code 42P08: ambiguous_parameter

§

AmbiguousAlias

Code 42P09: ambiguous_alias

§

InvalidColumnReference

Code 42P10: invalid_column_reference

§

InvalidColumnDefinition

Code 42611: invalid_column_definition

§

InvalidCursorDefinition

Code 42P11: invalid_cursor_definition

§

InvalidDatabaseDefinition

Code 42P12: invalid_database_definition

§

InvalidFunctionDefinition

Code 42P13: invalid_function_definition

§

InvalidPreparedStatementDefinition

Code 42P14: invalid_prepared_statement_definition

§

InvalidSchemaDefinition

Code 42P15: invalid_schema_definition

§

InvalidTableDefinition

Code 42P16: invalid_table_definition

§

InvalidObjectDefinition

Code 42P17: invalid_object_definition

§

WithCheckOptionViolation

Code 44000: with_check_option_violation

§

InsufficientResources

Code 53000: insufficient_resources

§

DiskFull

Code 53100: disk_full

§

OutOfMemory53200

Code 53200: out_of_memory

§

TooManyConnections

Code 53300: too_many_connections

§

ConfigurationLimitExceeded

Code 53400: configuration_limit_exceeded

§

ProgramLimitExceeded

Code 54000: program_limit_exceeded

§

StatementTooComplex

Code 54001: statement_too_complex

§

TooManyColumns

Code 54011: too_many_columns

§

TooManyArguments

Code 54023: too_many_arguments

§

ObjectNotInPrerequisiteState

Code 55000: object_not_in_prerequisite_state

§

ObjectInUse

Code 55006: object_in_use

§

CantChangeRuntimeParam

Code 55P02: cant_change_runtime_param

§

LockNotAvailable

Code 55P03: lock_not_available

§

UnsafeNewEnumValueUsage

Code 55P04: unsafe_new_enum_value_usage

§

OperatorIntervention

Code 57000: operator_intervention

§

QueryCanceled

Code 57014: query_canceled

§

AdminShutdown

Code 57P01: admin_shutdown

§

CrashShutdown

Code 57P02: crash_shutdown

§

CannotConnectNow

Code 57P03: cannot_connect_now

§

DatabaseDropped

Code 57P04: database_dropped

§

SystemError

Code 58000: system_error

§

IoError

Code 58030: io_error

§

UndefinedFile

Code 58P01: undefined_file

§

DuplicateFile

Code 58P02: duplicate_file

§

SnapshotTooOld

Code 72000: snapshot_too_old

§

ConfigFileError

Code F0000: config_file_error

§

LockFileExists

Code F0001: lock_file_exists

§

FdwError

Code HV000: fdw_error

§

FdwColumnNameNotFound

Code HV005: fdw_column_name_not_found

§

FdwDynamicParameterValueNeeded

Code HV002: fdw_dynamic_parameter_value_needed

§

FdwFunctionSequenceError

Code HV010: fdw_function_sequence_error

§

FdwInconsistentDescriptorInformation

Code HV021: fdw_inconsistent_descriptor_information

§

FdwInvalidAttributeValue

Code HV024: fdw_invalid_attribute_value

§

FdwInvalidColumnName

Code HV007: fdw_invalid_column_name

§

FdwInvalidColumnNumber

Code HV008: fdw_invalid_column_number

§

FdwInvalidDataType

Code HV004: fdw_invalid_data_type

§

FdwInvalidDataTypeDescriptors

Code HV006: fdw_invalid_data_type_descriptors

§

FdwInvalidDescriptorFieldIdentifier

Code HV091: fdw_invalid_descriptor_field_identifier

§

FdwInvalidHandle

Code HV00B: fdw_invalid_handle

§

FdwInvalidOptionIndex

Code HV00C: fdw_invalid_option_index

§

FdwInvalidOptionName

Code HV00D: fdw_invalid_option_name

§

FdwInvalidStringLengthOrBufferLength

Code HV090: fdw_invalid_string_length_or_buffer_length

§

FdwInvalidStringFormat

Code HV00A: fdw_invalid_string_format

§

FdwInvalidUseOfNullPointer

Code HV009: fdw_invalid_use_of_null_pointer

§

FdwTooManyHandles

Code HV014: fdw_too_many_handles

§

OutOfMemoryHV001

Code HV001: fdw_out_of_memory

§

FdwNoSchemas

Code HV00P: fdw_no_schemas

§

FdwOptionNameNotFound

Code HV00J: fdw_option_name_not_found

§

FdwReplyHandle

Code HV00K: fdw_reply_handle

§

FdwSchemaNotFound

Code HV00Q: fdw_schema_not_found

§

FdwTableNotFound

Code HV00R: fdw_table_not_found

§

FdwUnableToCreateExecution

Code HV00L: fdw_unable_to_create_execution

§

FdwUnableToCreateReply

Code HV00M: fdw_unable_to_create_reply

§

FdwUnableToEstablishConnection

Code HV00N: fdw_unable_to_establish_connection

§

PlpgsqlError

Code P0000: plpgsql_error

§

RaiseException

Code P0001: raise_exception

§

NoDataFound

Code P0002: no_data_found

§

TooManyRows

Code P0003: too_many_rows

§

AssertFailure

Code P0004: assert_failure

§

InternalError

Code XX000: internal_error

§

DataCorrupted

Code XX001: data_corrupted

§

IndexCorrupted

Code XX002: index_corrupted

Implementations§

Source§

impl PostgresErrorCode

Source

pub fn is_success(self) -> bool

Returns true if the error code is a success.

Source

pub fn is_warning(self) -> bool

Returns true if the error code is a warning.

Source

pub fn is_error(self) -> bool

Returns true if the error code is an error.

Source

pub const fn sqlstate(self) -> &'static str

Returns the static five-character SQLSTATE string for the given error code.

Trait Implementations§

Source§

impl Clone for PostgresErrorCode

Source§

fn clone(&self) -> PostgresErrorCode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PostgresErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PostgresErrorCode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for PostgresErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for PostgresErrorCode

Source§

fn cmp(&self, other: &PostgresErrorCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for PostgresErrorCode

Source§

fn eq(&self, other: &PostgresErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for PostgresErrorCode

Source§

fn partial_cmp(&self, other: &PostgresErrorCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for PostgresErrorCode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for PostgresErrorCode

Source§

impl Eq for PostgresErrorCode

Source§

impl StructuralPartialEq for PostgresErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> MaybeSend for T
where T: Send,

Source§

impl<N> NodeTrait for N
where N: Copy + Ord + Hash,