All of the "when.js" promise components needed in this module.
Other dependencies, including the mysql
library,
which needs to be added as a dependency to the project
using this database.
All other local project modules needed in this scope.
Constructor for the MySQLClient.
Runs the query on the specified connection, providing the bindings and any other necessary prep work.
Get a raw connection, called by the pool
whenever a new
connection needs to be added to the pool.
Used to explicitly close a connection, called internally by the pool when a connection times out or the pool is shutdown.
Used to check if there is a conditional query needed to complete the next one.
Set to the datatype we're looking to change it to...
Extends the standard sql grammar.
The keyword identifier wrapper format.
Parses the response, according to the way mySQL works...
Grammar for the schema builder.
The possible column modifiers.
Handle response for the schema.
Compile a create table command.
Checks if the table is commented
TODO: Handle max comment length.
Compile the query to determine if a table exists.
Compile a query to determine if a column exists.
Compile an add command.
Compile a primary key command.
Compile a unique key command.
Compile a plain index key command.
Compile an index creation command.
Compile a drop column command.
Compile a drop primary key command.
Compile a drop unique key command.
Compile a drop index command.
Compile a drop foreign key command.
Compile a rename table command.
Compile a rename column command.
Compiles the comment on the table.
Handled on create table...
Create the column definition for a text type.
Create the column type definition for a bigint type.
Create the column definition for a integer type.
Create the column definition for a float type.
Create the column definition for a decimal type.
Create the column definition for a boolean type.
Create the column definition for a enum type.
Create the column definition for a date-time type.
Create the column definition for a timestamp type.
Create the column definition for a bit type.
Get the SQL for an unsigned column modifier.
Get the SQL for a default column modifier.
TODO - no default on blob/text
Get the SQL for an auto-increment column modifier.
Get the SQL for an "after" column modifier.
Get the SQL for a comment column modifier.
TODO: Look into limiting this length.
MySQL