Structure
PSQLError.ServerInfo.Field
struct Field
Topics
Instance Properties
var description: StringA textual representation of this instance.
Type Properties
static let columnName: PSQLError.ServerInfo.FieldColumn name: if the error was associated with a specific table column, the name of the column. (Refer to the schema and table name fields to identify the table.)static let constraintName: PSQLError.ServerInfo.FieldConstraint name: if the error was associated with a specific constraint, the name of the constraint. Refer to fields listed above for the associated table or domain. (For this purpose, indexes are treated as constraints, even if they weren’t created with constraint syntax.)static let dataTypeName: PSQLError.ServerInfo.FieldData type name: if the error was associated with a specific data type, the name of the data type. (Refer to the schema name field for the name of the data type’s schema.)static let detail: PSQLError.ServerInfo.FieldDetail: an optional secondary error message carrying more detail about the problem. Might run to multiple lines.static let file: PSQLError.ServerInfo.FieldFile: the file name of the source-code location where the error was reported.static let hint: PSQLError.ServerInfo.FieldHint: 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.static let internalPosition: PSQLError.ServerInfo.FieldInternal position: this is defined the same as the P field, but it is used when the cursor position refers to an internally generated command rather than the one submitted by the client. The q field will always appear when this field appears.static let internalQuery: PSQLError.ServerInfo.FieldInternal query: the text of a failed internally-generated command. This could be, for example, a SQL query issued by a PL/pgSQL function.static let line: PSQLError.ServerInfo.FieldLine: the line number of the source-code location where the error was reported.static let localizedSeverity: PSQLError.ServerInfo.FieldSeverity: the field contents are ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a localized translation of one of these. Always present.static let locationContext: PSQLError.ServerInfo.FieldWhere: 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.static let message: PSQLError.ServerInfo.FieldMessage: the primary human-readable error message. This should be accurate but terse (typically one line). Always present.static let position: PSQLError.ServerInfo.FieldPosition: the field value is a decimal ASCII integer, indicating an error cursor position as an index into the original query string. The first character has index 1, and positions are measured in characters not bytes.static let routine: PSQLError.ServerInfo.FieldRoutine: the name of the source-code routine reporting the error.static let schemaName: PSQLError.ServerInfo.FieldSchema name: if the error was associated with a specific database object, the name of the schema containing that object, if any.static let severity: PSQLError.ServerInfo.FieldSeverity: the field contents are ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message). This is identical to the S field except that the contents are never localized. This is present only in messages generated by PostgreSQL versions 9.6 and later.static let sqlState: PSQLError.ServerInfo.FieldCode: the SQLSTATE code for the error (see Appendix A). Not localizable. Always present.static let tableName: PSQLError.ServerInfo.FieldTable name: if the error was associated with a specific table, the name of the table. (Refer to the schema name field for the name of the table’s schema.)
Relationships
Conforms To
Swift.CustomStringConvertibleSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype