Versions in this module Expand all Collapse all v0 v0.1.0 Aug 31, 2026 Changes in this version + const Kind + var ErrInvalidConnectionString = errors.New("postgres: invalid connection string") + var ErrOpenTimeout = errors.New("postgres: open timeout") + var ErrRuntimeClosed = errors.New("postgres: runtime closed") + var ErrShutdownTimeout = errors.New("postgres: shutdown timeout") + var ErrUnsupportedKind = errors.New("postgres: unsupported database kind") + type Adapter struct + func New() *Adapter + func (*Adapter) Kind() connection.Kind + func (*Adapter) ParseConnectionString(input []byte) (connection.ParsedConnection, error) + type Client struct + type DefinitionPreparer interface + Prepare func(context.Context, connection.ID) (connection.ResolvedDefinition, error) + type Discoverer struct + func NewDiscoverer(opener clientOpener) (*Discoverer, error) + func (d *Discoverer) Kind() connection.Kind + func (d *Discoverer) ListColumns(ctx context.Context, request execution.ColumnDiscoveryRequest) (execution.ColumnDiscoveryPage, error) + func (d *Discoverer) ListSchemas(ctx context.Context, request execution.SchemaDiscoveryRequest) (execution.SchemaDiscoveryPage, error) + func (d *Discoverer) ListTables(ctx context.Context, request execution.TableDiscoveryRequest) (execution.TableDiscoveryPage, error) + type Opener struct + func NewOpener(preparer DefinitionPreparer) (*Opener, error) + func (o *Opener) Close(ctx context.Context) error + func (o *Opener) Invalidate(id connection.ID) + func (o *Opener) Open(ctx context.Context, id connection.ID) (*Client, error) + func (o *Opener) OpenQuery(ctx context.Context, id connection.ID) (*Client, error) + type QueryExecutor struct + func NewQueryExecutor(opener queryClientOpener, options QueryOptions) (*QueryExecutor, error) + func (e *QueryExecutor) Kind() connection.Kind + func (e *QueryExecutor) Query(requestContext context.Context, ...) (result execution.RelationalQueryResult, returnErr error) + type QueryOptions struct + ResponseByteLimit int + RowLimit int + Timeout time.Duration + TruncationEnabled bool