Documentation
¶
Index ¶
- func GetDataType(ctx context.Context, inConn Conn, oid oid.Oid) (*pgtype.Type, error)
- func RegisterTelemetry(conns OrderedConns) error
- type Config
- type Conn
- type FakeConn
- func (f FakeConn) Clone(ctx context.Context) (Conn, error)
- func (f FakeConn) Close(ctx context.Context) error
- func (f FakeConn) ConnStr() string
- func (f FakeConn) Database() tree.Name
- func (f FakeConn) Dialect() string
- func (f FakeConn) ID() ID
- func (f FakeConn) IsCockroach() bool
- func (f FakeConn) TypeMap() *pgtype.Map
- type ID
- type MySQLConn
- func (c *MySQLConn) Clone(ctx context.Context) (Conn, error)
- func (c *MySQLConn) Close(ctx context.Context) error
- func (c *MySQLConn) ConnStr() string
- func (c *MySQLConn) Database() tree.Name
- func (c *MySQLConn) Dialect() string
- func (c *MySQLConn) ID() ID
- func (c *MySQLConn) IsCockroach() bool
- func (c *MySQLConn) TLSMap() map[string]string
- func (c *MySQLConn) TypeMap() *pgtype.Map
- type OracleConn
- func (c *OracleConn) Clone(ctx context.Context) (Conn, error)
- func (c *OracleConn) Close(ctx context.Context) error
- func (c *OracleConn) ConnStr() string
- func (c *OracleConn) Database() tree.Name
- func (c *OracleConn) Dialect() string
- func (c *OracleConn) ID() ID
- func (c *OracleConn) IsCockroach() bool
- func (c *OracleConn) TypeMap() *pgtype.Map
- type OrderedConns
- type PGConn
- func (c *PGConn) CheckIfAfterVersion(ctx context.Context, version string) (bool, error)
- func (c *PGConn) Clone(ctx context.Context) (Conn, error)
- func (c *PGConn) ConnStr() string
- func (c *PGConn) Database() tree.Name
- func (c *PGConn) Dialect() string
- func (c *PGConn) ID() ID
- func (c *PGConn) IsCockroach() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataType ¶
func RegisterTelemetry ¶
func RegisterTelemetry(conns OrderedConns) error
Types ¶
type Conn ¶
type Conn interface { ID() ID // Close closes the connection. Close(ctx context.Context) error // Clone creates a new Conn with the same underlying connections arguments. Clone(ctx context.Context) (Conn, error) // TypeMap returns a pgx typemap. TypeMap() *pgtype.Map IsCockroach() bool ConnStr() string Dialect() string Database() tree.Name }
type FakeConn ¶
type FakeConn struct {
// contains filtered or unexported fields
}
func MakeFakeConn ¶
func (FakeConn) IsCockroach ¶
type OracleConn ¶
func ConnectOracle ¶
func (*OracleConn) ConnStr ¶
func (c *OracleConn) ConnStr() string
func (*OracleConn) Database ¶ added in v0.2.0
func (c *OracleConn) Database() tree.Name
func (*OracleConn) Dialect ¶
func (c *OracleConn) Dialect() string
func (*OracleConn) ID ¶
func (c *OracleConn) ID() ID
func (*OracleConn) IsCockroach ¶
func (c *OracleConn) IsCockroach() bool
func (*OracleConn) TypeMap ¶
func (c *OracleConn) TypeMap() *pgtype.Map
type OrderedConns ¶
type OrderedConns [2]Conn
type PGConn ¶
type PGConn struct { *pgx.Conn // contains filtered or unexported fields }
func ConnectPGConfig ¶
func (*PGConn) CheckIfAfterVersion ¶ added in v0.2.0
func (*PGConn) IsCockroach ¶
Click to show internal directories.
Click to hide internal directories.