Versions in this module Expand all Collapse all v0 v0.21.0 Feb 22, 2026 Changes in this version + var ErrDriverNotSelected = errors.New("driver not selected") + type NullDriver struct + func NewNullDriver() *NullDriver + func (d *NullDriver) Connect(ctx context.Context, config config.DriverConfig) (plugin.DriverConnection, error) + func (d *NullDriver) Disconnect(ctx context.Context, conn plugin.DriverConnection) error + type NullDriverConnection struct + func (c *NullDriverConnection) AppendAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *NullDriverConnection) LockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *NullDriverConnection) Query(execCtx plugin.DriverExecutionContext) plugin.DriverQuery + func (c *NullDriverConnection) ReadAuditLogs(ctx context.Context, execCtx plugin.DriverExecutionContext) ([]plugin.DriverAuditLog, error) + func (c *NullDriverConnection) UnlockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *NullDriverConnection) UpsertAuditLockTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + func (c *NullDriverConnection) UpsertAuditLogTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + type NullDriverQuery struct + func (q *NullDriverQuery) Begin(ctx context.Context) (plugin.DriverQuery, error) + func (q *NullDriverQuery) Commit(ctx context.Context) error + func (q *NullDriverQuery) Exec(ctx context.Context, query string, args ...any) error + func (q *NullDriverQuery) Query(ctx context.Context, query string, args ...any) (*plugin.DriverQueryResult, error) + func (q *NullDriverQuery) Rollback(ctx context.Context) error + type PostgreSQLBrowser struct + func NewPostgreSQLBrowser(driver *PostgreSQLDriver) *PostgreSQLBrowser + func (b *PostgreSQLBrowser) Connect(ctx context.Context, dsn string) error + func (b *PostgreSQLBrowser) Disconnect(ctx context.Context) error + func (b *PostgreSQLBrowser) List(ctx context.Context, ids []string) ([]plugin.BrowserItem, error) + func (b *PostgreSQLBrowser) ParseExplain(data plugin.BrowserQueryResult) (plugin.BrowserExplainResult, error) + func (b *PostgreSQLBrowser) Query(ctx context.Context, sql string) (plugin.BrowserQueryResult, error) + func (b *PostgreSQLBrowser) Show(ctx context.Context, ids []string) (string, error) + type PostgreSQLDriver struct + func NewPostgreSQLDriver() *PostgreSQLDriver + func (d *PostgreSQLDriver) Connect(ctx context.Context, config config.DriverConfig) (plugin.DriverConnection, error) + func (d *PostgreSQLDriver) Disconnect(ctx context.Context, conn plugin.DriverConnection) error + type PostgreSQLDriverConnection struct + Conn *pgx.Conn + func (c *PostgreSQLDriverConnection) AppendAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *PostgreSQLDriverConnection) LockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *PostgreSQLDriverConnection) Query(execCtx plugin.DriverExecutionContext) plugin.DriverQuery + func (c *PostgreSQLDriverConnection) ReadAuditLogs(ctx context.Context, execCtx plugin.DriverExecutionContext) ([]plugin.DriverAuditLog, error) + func (c *PostgreSQLDriverConnection) UnlockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *PostgreSQLDriverConnection) UpsertAuditLockTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + func (c *PostgreSQLDriverConnection) UpsertAuditLogTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + type PostgreSQLQuery struct + func (q *PostgreSQLQuery) Begin(ctx context.Context) (plugin.DriverQuery, error) + func (q *PostgreSQLQuery) Commit(ctx context.Context) error + func (q *PostgreSQLQuery) Exec(ctx context.Context, query string, args ...any) error + func (q *PostgreSQLQuery) Query(ctx context.Context, query string, args ...any) (*plugin.DriverQueryResult, error) + func (q *PostgreSQLQuery) Rollback(ctx context.Context) error + type Registry struct + func New() *Registry + func (r *Registry) Get(name string) (plugin.Driver, error) + func (r *Registry) GetBrowser(name string) (plugin.Browser, error) + func (r *Registry) Register(name string, driver plugin.Driver) + func (r *Registry) RegisterAll() + func (r *Registry) RegisterBrowser(name string, browser plugin.Browser) + type SQLiteDriver struct + func NewSQLiteDriver() *SQLiteDriver + func (d *SQLiteDriver) Connect(ctx context.Context, config config.DriverConfig) (plugin.DriverConnection, error) + func (d *SQLiteDriver) Disconnect(ctx context.Context, conn plugin.DriverConnection) error + type SQLiteDriverConnection struct + func (c *SQLiteDriverConnection) AppendAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *SQLiteDriverConnection) LockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *SQLiteDriverConnection) Query(execCtx plugin.DriverExecutionContext) plugin.DriverQuery + func (c *SQLiteDriverConnection) ReadAuditLogs(ctx context.Context, execCtx plugin.DriverExecutionContext) ([]plugin.DriverAuditLog, error) + func (c *SQLiteDriverConnection) UnlockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *SQLiteDriverConnection) UpsertAuditLockTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + func (c *SQLiteDriverConnection) UpsertAuditLogTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + type SQLiteDriverQuery struct + func (q *SQLiteDriverQuery) Begin(ctx context.Context) (plugin.DriverQuery, error) + func (q *SQLiteDriverQuery) Commit(ctx context.Context) error + func (q *SQLiteDriverQuery) Exec(ctx context.Context, query string, args ...any) error + func (q *SQLiteDriverQuery) Query(ctx context.Context, query string, args ...any) (*plugin.DriverQueryResult, error) + func (q *SQLiteDriverQuery) Rollback(ctx context.Context) error