Categorygithub.com/joinlee/kingbase-driver
modulepackage
1.0.3
Repository: https://github.com/joinlee/kingbase-driver.git
Documentation: pkg.go.dev

# Packages

Package oid contains OID constants as defined by the Kingbase server.
Package scram implements a SCRAM-{SHA-1,etc} client per RFC5802.

# Functions

Array returns the optimal driver.Valuer and sql.Scanner for an array or slice of any dimension.
ConnectorNoticeHandler returns the currently set notice handler, if any.
ConnectorWithNoticeHandler creates or sets the given handler for the given connector.
CopyIn creates a COPY FROM statement which can be prepared with Tx.Prepare().
CopyInSchema creates a COPY FROM statement which can be prepared with Tx.Prepare().
DialOpen opens a new connection to the database using a dialer.
EnableInfinityTs controls the handling of Kingbase' "-infinity" and "infinity" "timestamp"s.
FormatTimestamp formats t into Kingbase' text format for timestamps.
NewConnector returns a connector for the kb driver in a fixed configuration with the given dsn.
NewDialListener is like NewListener but it takes a Dialer.
NewListener creates a new database connection dedicated to LISTEN / NOTIFY.
NewListenerConn creates a new ListenerConn.
NoticeHandler returns the notice handler on the given connection, if any.
Open opens a new connection to the database.
ParseTimestamp parses Kingbase' text format.
ParseURL no longer needs to be used by clients of this library since supplying a URL as a connection string to sql.Open() is now supported: sql.Open("kingbase", "kingbase://bob:[email protected]:54321/mydb?sslmode=verify-full") It remains exported here for backwards-compatibility.
QuoteIdentifier quotes an "identifier" (e.g.
QuoteLiteral quotes a 'literal' (e.g.
SetNoticeHandler sets the given notice handler on the given connection.

# Constants

Error severities.
Error severities.
Error severities.
Error severities.
Error severities.
Error severities.
Error severities.
No description provided by the author
No description provided by the author
No description provided by the author
INFO.
ListenerEventConnected is emitted only when the database connection has been initially initialized.
ListenerEventConnectionAttemptFailed is emitted after a connection to the database was attempted, but failed.
ListenerEventDisconnected is emitted after a database connection has been lost, either because of an error or because Close has been called.
ListenerEventReconnected is emitted after a database connection has been re-established after connection loss.

# Variables

ErrChannelAlreadyOpen is returned from Listen when a channel is already open.
ErrChannelNotOpen is returned from Unlisten when a channel is not open.
Common error types.
Common error types.
Common error types.
Common error types.
Common error types.

# Structs

Connector represents a fixed configuration for the kb driver with a given name.
Driver is the Kingbase database driver.
Error represents an error communicating with the server.
GenericArray implements the driver.Valuer and sql.Scanner interfaces for an array or slice of any dimension.
Listener provides an interface for listening to notifications from a Kingbase database.
ListenerConn is a low-level interface for waiting for notifications.
NoticeHandlerConnector wraps a regular connector and sets a notice handler on it.
Notification represents a single notification from the database.
NullTime represents a time.Time that may be null.

# Interfaces

ArrayDelimiter may be optionally implemented by driver.Valuer or sql.Scanner to override the array delimiter used by GenericArray.
Dialer is the dialer interface.
DialerContext is the context-aware dialer interface.
KBError is an interface used by previous versions of kb.

# Type aliases

BoolArray represents a one-dimensional array of the Kingbase boolean type.
ByteaArray represents a one-dimensional array of the Kingbase bytea type.
ErrorClass is only the class part of an error code.
ErrorCode is a five-character error code.
EventCallbackType is the event callback type.
Float64Array represents a one-dimensional array of the Kingbase double precision type.
Int64Array represents a one-dimensional array of the Kingbase integer types.
ListenerEventType is an enumeration of listener event types.
StringArray represents a one-dimensional array of the Kingbase character types.