Documentation ¶
Index ¶
Constants ¶
View Source
const ( Mysql = "mysql" Postgres = "postgres" Sqlite = "sqlite3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntConnection ¶
type EntConnection struct {
// contains filtered or unexported fields
}
func NewEntConnection ¶
func NewEntConnection(connectionURL string, connector SQLConnector, logger zerolog.Logger) (*EntConnection, error)
func (*EntConnection) DB ¶
func (c *EntConnection) DB() *ent.Client
func (*EntConnection) Migrate ¶
func (c *EntConnection) Migrate() error
type EntConnector ¶
type EntConnector struct {
// contains filtered or unexported fields
}
func NewEntConnector ¶
func NewEntConnector(logger zerolog.Logger) *EntConnector
Click to show internal directories.
Click to hide internal directories.