Documentation
¶
Index ¶
Constants ¶
View Source
const ( DriverMySQL = "mysql" DriverMSSQL = "mssql" DriverPostgres = "postgres" DriverSQLite = "sqlite" )
supported database driver names
View Source
const DefaultConfigFile = "./miglite.yaml"
DefaultConfigFile default config file.
View Source
const DefaultMigrationsDir = "./migrations"
DefaultMigrationsDir default migrations dirpath. can override by env: MIGRATIONS_PATH
Variables ¶
View Source
var Log = &DefaultLogger{}
Log default Logger instance
Functions ¶
This section is empty.
Types ¶
type AppError ¶
AppError represents an application-specific error
type DefaultLogger ¶
type DefaultLogger struct{}
DefaultLogger is a simple logger implementation
func (*DefaultLogger) Debug ¶
func (l *DefaultLogger) Debug(msg string, args ...any)
Debug logs a debug message
func (*DefaultLogger) Error ¶
func (l *DefaultLogger) Error(msg string, args ...any)
Error logs an error message
func (*DefaultLogger) Info ¶
func (l *DefaultLogger) Info(msg string, args ...any)
Info logs an info message
func (*DefaultLogger) Warn ¶
func (l *DefaultLogger) Warn(msg string, args ...any)
Warn logs a warning message
Click to show internal directories.
Click to hide internal directories.