Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(driverName DriverName, dsn string) *Connection
func (*Connection) Close ¶
func (c *Connection) Close() error
type DataLoader ¶
type DataLoader struct {
// contains filtered or unexported fields
}
func NewDataLoader ¶
func NewDataLoader(conn *Connection) *DataLoader
type DriverName ¶
type DriverName int
const ( DriverNameUndefined DriverName = iota DriverNamePostgres )
func CreateDriverName ¶
func CreateDriverName(name string) (DriverName, error)
func (DriverName) String ¶
func (n DriverName) String() string
type Inserter ¶ added in v0.2.0
type Inserter struct {
// contains filtered or unexported fields
}
func NewInserter ¶ added in v0.2.0
func NewInserter(db *Connection) *Inserter
type PGLoader ¶
type PGLoader struct {
// contains filtered or unexported fields
}
func NewPGLoader ¶
func NewPGLoader(conn *Connection) *PGLoader
type SchemaLoader ¶
type SchemaLoader interface { // Load database schema Load(ctx context.Context) (*schema.Schema, error) }
func CreateSchemaLoader ¶
func CreateSchemaLoader(conn *Connection) (SchemaLoader, error)
Click to show internal directories.
Click to hide internal directories.