Versions in this module Expand all Collapse all v0 v0.1.0 Sep 13, 2023 Changes in this version + type Connection interface + Close func(ctx context.Context) error + Connect func(ctx context.Context, driver string, connString string) error + Copy func() Connection + Exec func(ctx context.Context, disableLog LogInfo, query string, args ...interface{}) error + type DefaultConnector struct + func NewDefaultConnector(logger logr.Logger) *DefaultConnector + func (d *DefaultConnector) Close(_ context.Context) error + func (d *DefaultConnector) Connect(ctx context.Context, driver, connString string) error + func (d *DefaultConnector) Copy() Connection + func (d *DefaultConnector) Exec(ctx context.Context, disableLog LogInfo, query string, args ...interface{}) error + type FakeConnection struct + func NewFakeConnection() *FakeConnection + func (m *FakeConnection) Close(_ context.Context) error + func (m *FakeConnection) Connect(_ context.Context, driver, connString string) error + func (m *FakeConnection) Connections() map[string]bool + func (m *FakeConnection) Copy() Connection + func (m *FakeConnection) Exec(_ context.Context, _ LogInfo, query string, args ...interface{}) error + func (m *FakeConnection) Queries() map[string]int + func (m *FakeConnection) ResetDB() + type LogInfo int + const DisableLogger + const EnableLogger