# Functions
DBTypeFromString parses a database type from a string.
EnumScan converts the enum to a value.
EnumValue converts the enum to a value.
GetGormLogger gets a gorm logger at the correct level TODO investigate https://github.com/moul/zapgorm, we want to use the same write group.
GetModelName returns the name of the model.
GetTestConnString returns the connection string for the mysql test database.
MysqlRealEscapeString mimics the behavior of the PHP function mysql_real_escape_string, which is used to escape special characters in a string before sending it to a MySQL database.
NewNamer creates a new namer.
# Constants
clickhouse.
EnableMysqlTestVar is the environment variable to enable mysql tests.
EnumDataType is exported here to be passed as GormDataType.
mysql.
MysqlDatabaseVar is the environment variable for the mysql database dsn.
MysqlHostVar is the environment variable for the mysql host.
MysqlPasswordVar is the environment variable for the mysql password.
MysqlPortVar is the environment variable for the mysql port.
MysqlUserVar is the environment variable for the mysql user.
sqlite.
# Variables
AllDBTypes is a list of all contract types.
# Type aliases
DBType is the database driver to use.