Struct sqlx_core::postgres::PgDatabaseError [−][src]
pub struct PgDatabaseError(_);
Expand description
An error returned from the PostgreSQL database.
Implementations
The primary human-readable error message. This should be accurate but terse (typically one line).
An optional secondary error message carrying more detail about the problem. Might run to multiple lines.
An optional suggestion what to do about the problem. This is intended to differ from
detail
in that it offers advice (potentially inappropriate) rather than hard facts.
Might run to multiple lines.
Indicates an error cursor position as an index into the original query string; or, a position into an internally generated query.
An indication of the context in which the error occurred. Presently this includes a call stack traceback of active procedural language functions and internally-generated queries. The trace is one entry per line, most recent first.
If this error is with a specific database object, the name of the schema containing that object, if any.
If this error is with a specific table, the name of the table.
If the error is with a specific table column, the name of the column.
If the error is with a specific data type, the name of the data type.
If the error is with a specific constraint, the name of the constraint. For this purpose, indexes are constraints, even if they weren’t created with constraint syntax.
The file name of the source-code location where this error was reported.
The line number of the source-code location where this error was reported.
Trait Implementations
Returns the name of the constraint that triggered the error, if applicable. If the error was caused by a conflict of a unique index, this will be the index name. Read more