Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit d87dab54
authored
Apr 08, 2019
by
Waldir Pimenta
Committed by
Sushant
Apr 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(query-interface): improve doc string descriptions (#10723)
1 parent
b6c9117f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
lib/query-interface.js
lib/query-interface.js
View file @
d87dab5
...
...
@@ -25,7 +25,7 @@ class QueryInterface {
}
/**
* Create
s
a database
* Create a database
*
* @param {string} database Database name to create
* @param {Object} [options] Query options
...
...
@@ -44,7 +44,7 @@ class QueryInterface {
}
/**
* Drop
s
a database
* Drop a database
*
* @param {string} database Database name to drop
* @param {Object} [options] Query options
...
...
@@ -58,7 +58,7 @@ class QueryInterface {
}
/**
* Create
s
a schema
* Create a schema
*
* @param {string} schema Schema name to create
* @param {Object} [options] Query options
...
...
@@ -72,7 +72,7 @@ class QueryInterface {
}
/**
* Drop
s
a schema
* Drop a schema
*
* @param {string} schema Schema name to drop
* @param {Object} [options] Query options
...
...
@@ -122,7 +122,7 @@ class QueryInterface {
}
/**
* Return
s
database version
* Return database version
*
* @param {Object} [options] Query options
* @param {QueryType} [options.type] Query type
...
...
@@ -237,7 +237,7 @@ class QueryInterface {
}
/**
* Drop
s
a table from database
* Drop a table from database
*
* @param {string} tableName Table name to drop
* @param {Object} options Query options
...
...
@@ -332,7 +332,7 @@ class QueryInterface {
}
/**
* Drop specified enum from database
, Postgres Only
* Drop specified enum from database
(Postgres only)
*
* @param {string} [enumName] Enum name to drop
* @param {Object} options Query options
...
...
@@ -354,7 +354,7 @@ class QueryInterface {
}
/**
* Drop all enums from database
, Postgres Only
* Drop all enums from database
(Postgres only)
*
* @param {Object} options Query options
*
...
...
@@ -375,7 +375,7 @@ class QueryInterface {
}
/**
* List all enums
, Postgres Only
* List all enums
(Postgres only)
*
* @param {string} [tableName] Table whose enum to list
* @param {Object} [options] Query options
...
...
@@ -390,7 +390,7 @@ class QueryInterface {
}
/**
* Rename
s
a table
* Rename a table
*
* @param {string} before Current name of table
* @param {string} after New name from table
...
...
@@ -489,7 +489,7 @@ class QueryInterface {
}
/**
* Add a new column
in
to a table
* Add a new column to a table
*
* ```js
* queryInterface.addColumn('tableA', 'columnC', Sequelize.STRING, {
...
...
@@ -515,7 +515,7 @@ class QueryInterface {
}
/**
* Remove a column from table
* Remove a column from
a
table
*
* @param {string} tableName Table to remove column from
* @param {string} attributeName Columns name to remove
...
...
@@ -620,7 +620,7 @@ class QueryInterface {
}
/**
* Add index to a column
* Add
an
index to a column
*
* @param {string|Object} tableName Table name to add index on, can be a object with schema
* @param {Array} [attributes] Use options.fields instead, List of attributes to add index on
...
...
@@ -698,7 +698,7 @@ class QueryInterface {
}
/**
* Get foreign key references details for the table
.
* Get foreign key references details for the table
*
* Those details contains constraintSchema, constraintName, constraintCatalog
* tableCatalog, tableSchema, tableName, columnName,
...
...
@@ -753,7 +753,7 @@ class QueryInterface {
}
/**
* Add
constraints to
table
* Add
a constraint to a
table
*
* Available constraints:
* - UNIQUE
...
...
@@ -846,6 +846,7 @@ class QueryInterface {
}
/**
* Remove a constraint from a table
*
* @param {string} tableName Table name to drop constraint from
* @param {string} constraintName Constraint name
...
...
@@ -965,7 +966,7 @@ class QueryInterface {
}
/**
* Insert records into a table
* Insert
multiple
records into a table
*
* @example
* queryInterface.bulkInsert('roles', [{
...
...
@@ -1078,7 +1079,7 @@ class QueryInterface {
}
/**
* Delete records from a table
* Delete
multiple
records from a table
*
* @param {string} tableName table name from where to delete records
* @param {Object} where where conditions to find records to delete
...
...
@@ -1214,7 +1215,7 @@ class QueryInterface {
}
/**
* Create SQL function
* Create
an
SQL function
*
* @example
* queryInterface.createFunction(
...
...
@@ -1252,7 +1253,7 @@ class QueryInterface {
}
/**
* Drop SQL function
* Drop
an
SQL function
*
* @example
* queryInterface.dropFunction(
...
...
@@ -1280,7 +1281,7 @@ class QueryInterface {
}
/**
* Rename SQL function
* Rename
an
SQL function
*
* @example
* queryInterface.renameFunction(
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment