Documentation ¶
Index ¶
Constants ¶
View Source
const DataException = "22000"
View Source
const PgServerErrConnectionFailure = "08006"
View Source
const PgServerErrProtocolViolation = "08P01"
View Source
const PgServerErrRejectedEstablishmentOfSqlconnection = "08004"
View Source
const PgServerErrSyntaxError = "42601"
View Source
const PgSeverityDebug = "DEBUG"
View Source
const PgSeverityError = "ERROR"
View Source
const PgSeverityFaral = "FATAL"
View Source
const PgSeverityInfo = "INFO"
View Source
const PgSeverityLog = "LOG"
View Source
const PgSeverityNotice = "NOTICE"
View Source
const PgSeverityPanic = "PANIC"
View Source
const PgSeverityWarning = "WARNING"
View Source
const PgTypeMapLength = 1
View Source
const PgTypeMapOid = 0
View Source
const PgsqlProtocolVersion = "9.6"
View Source
const ProgramLimitExceeded = "54000"
Variables ¶
View Source
var MTypes = map[byte]string{
'Q': "query",
'T': "rowDescription",
'D': "dataRow",
'C': "commandComplete",
'Z': "readyForQuery",
'R': "authentication",
'p': "passwordMessage",
'U': "unknown",
'X': "terminate",
'S': "parameterStatus",
'E': "execute",
'P': "parse",
't': "parameterDesctiption",
'B': "bind",
'H': "flush",
}
View Source
var MaxMsgSize = 32 << 20 // 32MB
View Source
var PgTypeMap = map[string][]int{
"BOOLEAN": {16, 1},
"BLOB": {17, -1},
"TIMESTAMP": {20, 8},
"INTEGER": {20, 8},
"VARCHAR": {25, -1},
}
PgTypeMap maps the immudb type descriptor with pgsql pgtype map. First int is the oid value (retrieved with select * from pg_type;) Second int is the length of the value. -1 for dynamic.
View Source
var PgsqlProtocolVersionMessage = fmt.Sprintf("pgsql wire protocol %s or greater version implemented by immudb", PgsqlProtocolVersion)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.