Versions in this module Expand all Collapse all v0 v0.4.1 Nov 8, 2026 v0.4.0 Nov 8, 2026 v0.3.0 Nov 4, 2026 v0.2.0 Nov 3, 2026 v0.1.1 Nov 2, 2026 v0.1.0 Nov 2, 2026 Changes in this version + const DefaultPieceSize + const DefaultPort + const ErrAuthentication + const ErrCompilation + const ErrConnectorClosed + const ErrInvalidValue + const ErrNotSupported + const ErrRepeatedKey + const ErrRowsClosed + const ErrScheme + const ErrUnknownKey + func DisableOutput(ctx context.Context, e Execer) error + func EnableOutput(ctx context.Context, e Execer, size int) error + func NewBatch(array driver.Value) driver.Value + func ReadOutput(ctx context.Context, e Execer) ([]string, error) + func RegisterType(db *sql.DB, typeName, arrayTypeName string, typeObj any) error + func RegisterTypeWithOwner(db *sql.DB, owner, typeName, arrayTypeName string, typeObj any) error + func WithOptions(ctx context.Context, opts ...Option) context.Context + func WrapRefCursor(ctx context.Context, q Querier, cursor *RefCursor) (*sql.Rows, error) + type Auth string + const AuthKerberos + const AuthOS + const AuthPassword + const AuthToken + type BFile = types.BFile + func CreateBFile(ctx context.Context, db *sql.DB, dir, name string) (*BFile, error) + type BatchError = tns.BatchError + type Blob = types.Blob + func CreateBlob(ctx context.Context, db *sql.DB, input any) (*Blob, error) + type Bool = types.Bool + type Client struct + Host string + Program string + Terminal string + User string + type Clob = types.Clob + func CreateClob(ctx context.Context, db *sql.DB, input any, nclob bool) (*Clob, error) + type Config struct + Alias string + Auth Auth + Charset string + Checksum ServiceLevel + Client Client + ConnectTimeout time.Duration + Descriptor string + Dialer Dialer + Encryption ServiceLevel + Host string + Instance string + Kerberos Kerberos + Language string + LobFetch LobFetch + LobRead LobRead + Logger *slog.Logger + NTS NTS + Password string + Port int + Prefetch int + Privilege Privilege + Program string + ProxyUser string + SID string + SSLCert string + SSLKey string + SSLMode SSLMode + SSLRootCert string + SSLServerName string + Servers []string + Service string + TLS *tls.Config + TNSAdmin string + Territory string + Timeout time.Duration + Token string + TokenKey string + UnixSocket string + User string + Wallet string + WalletPassword string + func ParseDSN(dsn string) (Config, error) + func (cfg Config) DSN() string + type Connector struct + func NewConnector(cfg Config, opts ...ConnectorOption) (*Connector, error) + func (c *Connector) Close() error + func (c *Connector) Connect(ctx context.Context) (driver.Conn, error) + func (c *Connector) Driver() driver.Driver + type ConnectorOption func(*Connector) error + func WithSessionParam(key, value string) ConnectorOption + func WithWallet(r io.Reader) ConnectorOption + type Dialer interface + DialContext func(ctx context.Context, network, address string) (net.Conn, error) + type Driver struct + func (Driver) Open(string) (driver.Conn, error) + func (Driver) OpenConnector(dsn string) (driver.Connector, error) + type Error = tns.Error + type Execer interface + ExecContext func(ctx context.Context, query string, args ...any) (sql.Result, error) + type IntervalYM = types.IntervalYM + type JSON = types.JSON + func NewJSON(v any) (*JSON, error) + type Kerberos interface + Authenticate func(server, service string) ([]byte, error) + type LobFetch string + const LobFetchInline + const LobFetchStream + type LobRead string + const LobReadAuto + const LobReadExplicit + type LobReader = types.LobReader + type NTS = config.NTSAuthenticator + type NVarChar = types.NVarChar + type Object = types.Object + type Option = ttc.Option + func WithBatchErrors() Option + func WithDatabase(name string) Option + func WithLobFetch(f LobFetch) Option + func WithParameter(name string, value any) Option + func WithPrefetch(rows int) Option + func WithReadonly(readonly bool) Option + func WithRowCounts(counts *[]int64) Option + func WithTimeout(d time.Duration) Option + type Out = ttc.Out + type Privilege string + const PrivilegeSYSASM + const PrivilegeSYSBACKUP + const PrivilegeSYSDBA + const PrivilegeSYSDG + const PrivilegeSYSKM + const PrivilegeSYSOPER + const PrivilegeSYSRAC + type Querier = ttc.Querier + type RefCursor = ttc.RefCursor + type RowError = tns.RowError + type RowID = types.RowID + type SSLMode string + const SSLDisable + const SSLRequire + const SSLVerifyCA + const SSLVerifyFull + type ServerError = tns.OracleError + type ServiceLevel string + const ServiceAccepted + const ServiceRejected + const ServiceRequested + const ServiceRequired + type SparseVector = types.SparseVector + type TimestampTZ = types.TimestampTZ + type Vector = types.Vector + func CreateVector(array any) (*Vector, error)