AddForeignKey creates a Query that can be used to add a foreign key constraint to a table.
The length of cols and refCols must be the same as they refer to the primary and referential columns.
The optional "options" parameters will be appended to the SQL statement. They can be used to
specify options such as "ON DELETE CASCADE".
AddPrimaryKey creates a Query that can be used to specify primary key(s) for a table.
The "name" parameter specifies the name of the primary key constraint.
CreateTable creates a Query that represents a CREATE TABLE SQL statement.
The keys of cols are the column names, while the values of cols are the corresponding column types.
The optional "options" parameters will be appended to the generated SQL statement.
Delete creates a Query that represents a DELETE SQL statement.
If the "where" expression is nil, the DELETE SQL statement will have no WHERE clause
(be careful in this case as the SQL statement will delete ALL rows in the table).
Insert creates a Query that represents an INSERT SQL statement.
The keys of cols are the column names, while the values of cols are the corresponding column
values to be inserted.
NewQuery creates a new Query object with the given SQL statement.
The SQL statement may contain parameter placeholders which can be bound with actual parameter
values before the statement is executed.
Update creates a Query that represents an UPDATE SQL statement.
The keys of cols are the column names, while the values of cols are the corresponding new column
values. If the "where" expression is nil, the UPDATE SQL statement will have no WHERE clause
(be careful in this case as the SQL statement will update ALL rows in the table).
Upsert creates a Query that represents an UPSERT SQL statement.
Upsert inserts a row into the table if the primary key or unique index is not found.
Otherwise it will update the row with the new values.
The keys of cols are the column names, while the values of cols are the corresponding column
values to be inserted.
BaseBuilder provides a basic implementation of the Builder interface.