Documentation
¶
Index ¶
- Variables
- func MySQLfacotry(_ context.Context, config *dbconfig.DBConfig) (db *aorm.DB, err error)
- func PostgresFactory(ctx context.Context, config *dbconfig.DBConfig) (db *aorm.DB, err error)
- func Sqlite3Factory(_ context.Context, config *dbconfig.DBConfig) (db *aorm.DB, err error)
- type CmdDBConnection
- type Factories
- type Factory
- type RawDBConnection
- type RawFactories
- type RawFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var SystemFactories = Factories{ "mysql": MySQLfacotry, "postgres": PostgresFactory, "sqlite": Sqlite3Factory, "sqlite3": Sqlite3Factory, }
View Source
var SystemRawFactories = RawFactories{ "postgres": PostgreSQLRawFactory, "sqlite": Sqlite3RawFactory, "sqlite3": Sqlite3RawFactory, }
Functions ¶
func MySQLfacotry ¶
func PostgresFactory ¶
Types ¶
type CmdDBConnection ¶
type CmdDBConnection struct {
// contains filtered or unexported fields
}
func NewCmdDBConnection ¶
func NewCmdDBConnection(cmd *exec.Cmd, closer func(c *CmdDBConnection) error) *CmdDBConnection
func (*CmdDBConnection) Close ¶
func (c *CmdDBConnection) Close() error
func (*CmdDBConnection) Do ¶
func (c *CmdDBConnection) Do(f func(c RawDBConnection))
func (*CmdDBConnection) Error ¶
func (c *CmdDBConnection) Error() *bufio.Reader
func (*CmdDBConnection) In ¶
func (c *CmdDBConnection) In() io.Writer
func (*CmdDBConnection) Open ¶
func (c *CmdDBConnection) Open() (err error)
func (*CmdDBConnection) Out ¶
func (c *CmdDBConnection) Out() *bufio.Reader
type RawDBConnection ¶
type RawDBConnection interface { io.Closer Open() error Error() *bufio.Reader Out() *bufio.Reader In() io.Writer Do(func(c RawDBConnection)) }
func PostgreSQLRawFactory ¶
func Sqlite3RawFactory ¶
type RawFactories ¶
type RawFactories map[string]RawFactory
type RawFactory ¶
Click to show internal directories.
Click to hide internal directories.