Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUUID ¶
Types ¶
type PostgresConfig ¶
type PostgresConfig struct { Host string `default:"localhost"` Port int `default:"5432"` Name string `default:"development"` User string `default:"postgres"` Pass string `default:""` SSLMode string `default:"disable"` TimeZone string `default:"America/Sao_Paulo"` }
func NewPostgresConfig ¶
func NewPostgresConfig() *PostgresConfig
func (*PostgresConfig) ToString ¶
func (r *PostgresConfig) ToString() string
type PostgresDatabase ¶
func NewPostgres ¶
func NewPostgres(models []interface{}) *PostgresDatabase
func (*PostgresDatabase) GetDB ¶
func (p *PostgresDatabase) GetDB() *gorm.DB
type SqliteConfig ¶
type SqliteConfig struct {
Path string `default:"db/development.db"`
}
func NewSqliteConfig ¶
func NewSqliteConfig() *SqliteConfig
func (*SqliteConfig) ToString ¶
func (sc *SqliteConfig) ToString() string
type SqliteDatabase ¶
func NewSqlite ¶
func NewSqlite(models []interface{}) *SqliteDatabase
func (*SqliteDatabase) GetDB ¶
func (s *SqliteDatabase) GetDB() *gorm.DB
Click to show internal directories.
Click to hide internal directories.