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 ed5e2e9e
authored
Dec 05, 2011
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed obsolete functions
1 parent
011f70ef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
34 deletions
lib/connectors/mysql/query-generator.js
lib/connectors/query-generator.js
lib/migration.js
lib/connectors/mysql/query-generator.js
View file @
ed5e2e9
...
@@ -85,15 +85,6 @@ var QueryGenerator = module.exports = {
...
@@ -85,15 +85,6 @@ var QueryGenerator = module.exports = {
return
Utils
.
_
.
template
(
query
)(
options
)
return
Utils
.
_
.
template
(
query
)(
options
)
},
},
countQuery
:
function
(
tableName
,
options
)
{
return
QueryGenerator
.
selectQuery
(
tableName
,
options
).
replace
(
"*"
,
"count(*)"
)
},
maxQuery
:
function
(
tableName
,
field
,
options
)
{
return
QueryGenerator
.
selectQuery
(
tableName
,
options
).
replace
(
"*"
,
"max("
+
field
+
") as max"
)
},
minQuery
:
function
(
tableName
,
field
,
options
)
{
return
QueryGenerator
.
selectQuery
(
tableName
,
options
).
replace
(
"*"
,
"min("
+
field
+
") as min"
)
},
/*
/*
Returns an insert into command. Parameters: table name + hash of attribute-value-pairs.
Returns an insert into command. Parameters: table name + hash of attribute-value-pairs.
*/
*/
...
...
lib/connectors/query-generator.js
View file @
ed5e2e9
...
@@ -33,30 +33,6 @@ module.exports = (function() {
...
@@ -33,30 +33,6 @@ module.exports = (function() {
},
},
/*
/*
Returns a query for counting elements in the table <tableName>.
Options are the very same as in selectQuery.
*/
countQuery
:
function
(
tableName
,
options
)
{
throw
new
Error
(
'Define the method countQuery!'
)
},
/*
Returns a query for getting the max value of a field in the table <tableName>.
Options are the very same as in selectQuery.
*/
maxQuery
:
function
(
tableName
,
field
,
options
)
{
throw
new
Error
(
'Define the method maxQuery!'
)
},
/*
Returns a query for getting the min value of a field in the table <tableName>.
Options are the very same as in selectQuery.
*/
minQuery
:
function
(
tableName
,
field
,
options
)
{
throw
new
Error
(
'Define the method minQuery!'
)
},
/*
Returns an insert into command. Parameters: table name + hash of attribute-value-pairs.
Returns an insert into command. Parameters: table name + hash of attribute-value-pairs.
*/
*/
insertQuery
:
function
(
tableName
,
attrValueHash
)
{
insertQuery
:
function
(
tableName
,
attrValueHash
)
{
...
...
lib/migration.js
View file @
ed5e2e9
...
@@ -127,6 +127,5 @@ module.exports = (function() {
...
@@ -127,6 +127,5 @@ module.exports = (function() {
}
}
}
}
return
Migration
return
Migration
})()
})()
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