Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlogWriter ¶
type GlogWriter struct {
// contains filtered or unexported fields
}
GlogWriter implements gorm.logger.Writer interface
func (*GlogWriter) Printf ¶
func (g *GlogWriter) Printf(format string, values ...interface{})
type PostgresDb ¶
type PostgresDb struct {
// contains filtered or unexported fields
}
func NewPostgresDb ¶
func NewPostgresDb(dsn string, log logger.Logger, flagset *storageflags.PrefixFlagSet, opts ...PostgresOption) (*PostgresDb, error)
func NewPostgresDbHelper ¶
func NewPostgresDbHelper(log logger.Logger, flagset *storageflags.PrefixFlagSet) (*PostgresDb, error)
func (*PostgresDb) AutoMigrate ¶
func (p *PostgresDb) AutoMigrate(tables []interface{}) error
func (*PostgresDb) AutoMigrateToName ¶
func (p *PostgresDb) AutoMigrateToName(tableName string, table interface{}) error
AutoMigrateItemTemporaryTable will create a item table named $tablename
func (*PostgresDb) GormDB ¶
func (p *PostgresDb) GormDB() *gorm.DB
type PostgresOption ¶
type PostgresOption interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.