Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSchemasForPool ¶ added in v0.3.0
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(cfg config.Database) *Connection
func NewOpenedConnection ¶ added in v0.3.0
func NewOpenedConnection(db *sqlx.DB) (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) Database ¶ added in v0.3.0
func (c *Connection) Database() config.Database
type ConnectionPool ¶ added in v0.3.0
type ConnectionPool struct {
// contains filtered or unexported fields
}
func NewConnectionPool ¶ added in v0.3.0
func NewConnectionPool() *ConnectionPool
func (*ConnectionPool) Close ¶ added in v0.3.0
func (p *ConnectionPool) Close() error
func (*ConnectionPool) Get ¶ added in v0.3.0
func (p *ConnectionPool) Get(name string) (*Connection, bool)
type DataLoader ¶
type DataLoader struct{}
func NewDataLoader ¶
func NewDataLoader() *DataLoader
func (*DataLoader) Load ¶
func (l *DataLoader) Load(ctx context.Context, conn *Connection, table string) (TableData, error)
type Inserter ¶ added in v0.2.0
type Inserter struct { }
func NewInserter ¶ added in v0.2.0
func NewInserter() *Inserter
type SchemaLoader ¶
Click to show internal directories.
Click to hide internal directories.