Documentation
¶
Index ¶
- Variables
- func Close(log *zap.Logger)
- func Connect(path string, log *zap.Logger) (*sqlx.DB, error)
- func EnsureInstallation(db *sqlx.DB) (int64, error)
- func GenID() string
- func NowISO() string
- func RunMigrations(db *sqlx.DB, log *zap.Logger) error
- func RunSeed(db *sqlx.DB, console *zap.Logger) error
- func ValidateDatabase(db *sqlx.DB, log *zap.Logger) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sqlx.DB
Functions ¶
func EnsureInstallation ¶
EnsureInstallation garantiza que exista la installation singleton 'default'. Devuelve el id numérico de la installation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.