package
0.0.0-20230101183712-202847b4b89b
Repository: https://github.com/corestoreio/csfw.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ForeignKeyName creates a new foreign key name.
GenerateKeyRelationships loads the foreign key relationships between a list of given tables or all tables in a database.
IndexName creates a new valid index name.
LoadColumns returns all columns from a list of table names in the current database.
LoadKeyColumnUsage returns all foreign key columns from a list of table names in the current database.
MustNewTables same as NewTableService but panics on error.
NewTable initializes a new table structure with minimal information and without a database connection.
NewTables creates a new TableService satisfying interface Manager.
NewVariables creates a new variable collection.
ReverseKeyColumnUsage reverses the argument to a new key column usage collection.
ShortAlias creates a short alias name from a table name using the first two characters.
TableName generates a table name, shortens it, if necessary, and removes all invalid characters.
TriggerName creates a new trigger name.
WithConnPool sets the connection pool to the Tables and each of it Table type.
WithCreateTable upserts tables to the current `Tables` object.
WithCreateTableFromFile creates the defined tables from the loaded *.sql files.
WithDB sets the DB object to the Tables and all sub Table types to handle the database connections.
WithDropTable drops the tables or views listed in argument `tableViewNames`.
WithLoadTables loads all tables and their columns in a database or only the specified tables.
WithQueryDBR adds a pre-defined query with its key to the Tables object.
WithQueryDBRCallBack allows to manipulate the generated dml.DBR objects in generated code to fit your needs.
WithTable upserts a new table to the Tables struct.

# Constants

No description provided by the author
No description provided by the author
If identifier starts with this, it is considered a view.
No description provided by the author
If identifier ends with this, it is considered a view.

# Structs

Column contains information about one database table column retrieved from information_schema.COLUMNS.
InfileOptions provides options for the function LoadDataInfile.
KeyColumnUsage represents a single row for DB table `KEY_COLUMN_USAGE`.
KeyColumnUsageCollection represents a collection type for DB table KEY_COLUMN_USAGE Not thread safe.
KeyRelationShips contains an internal cache about the database foreign key structure.
MasterStatus provides status information about the binary log files of the master.
Options allows to set custom options in the database manipulation functions.
Table represents a table from a specific database with a bound default connection pool.
TableLock defines the tables which are getting locked.
TableOption applies options and helper functions when creating a new table.
Tables handles all the tables defined for a package.
Variables contains multiple MySQL configuration variables.

# Type aliases

Columns contains a slice of column types.