不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit 87b6c24d by sdepold

added documentation of createTable method

1 parent 0dfe9a11
Showing with 8 additions and 1 deletions
...@@ -2,7 +2,14 @@ module.exports = (function() { ...@@ -2,7 +2,14 @@ module.exports = (function() {
var QueryGenerator = { var QueryGenerator = {
/* /*
Returns a query for creating a table. Returns a query for creating a table.
Attributes should have the format: {attributeName: type, attr2: type2} --> {title: 'VARCHAR(255)'} Parameters:
- tableName: Name of the new table.
- attributes: An object with containing attribute-attributeType-pairs.
Attributes should have the format:
{attributeName: type, attr2: type2}
--> e.g. {title: 'VARCHAR(255)'}
- options: An object with options.
Defaults: { engine: 'InnoDB', charset: null }
*/ */
createTableQuery: function(tableName, attributes, options) { createTableQuery: function(tableName, attributes, options) {
throwMethodUndefined('createTableQuery') throwMethodUndefined('createTableQuery')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!