package
0.0.0-20210210154335-f4159b9fcd5f
Repository: https://github.com/digital-dream-labs/hugh.git
Documentation: pkg.go.dev
# Functions
MigrateDatabase performs a database migration.
New initializes a new database connection.
NewNullString converts a string to sql.NullString.
NewNullTime converts time.Time to sql.NullTime.
NewNullTimePB converts a timestamppb.Timestamp to sql.NullString.
ParseSQLError turns mysql errors into codes.
WithDatabaseType sets the db type.
WithHost sets the db host.
WithName sets the db name.
WithPassword sets the db password.
WithPort sets the listener port.
WithTLSMode sets the tls mode.
WithUsername sets the db username.
WithViper specifies that the server should construct its options using viper.
# Type aliases
Option provides a function definition to set options.