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 1c6841b7
authored
Nov 22, 2011
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved query-generator into query-interface
1 parent
869b9d32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
6 deletions
lib/connectors/connector-manager.js
lib/query-interface.js
lib/connectors/connector-manager.js
View file @
1c6841b
...
@@ -3,11 +3,6 @@ module.exports = (function(){
...
@@ -3,11 +3,6 @@ module.exports = (function(){
throw
new
Error
(
'Define the constructor!'
)
throw
new
Error
(
'Define the constructor!'
)
}
}
ConnectorManager
.
prototype
.
getQueryGenerator
=
function
()
{
this
.
__QueryGenerator
=
this
.
__QueryGenerator
||
require
(
__dirname
+
'/'
+
this
.
sequelize
.
options
.
connector
+
'/query-generator'
)
return
this
.
__QueryGenerator
}
ConnectorManager
.
prototype
.
query
=
function
(
sql
,
callee
,
options
)
{
ConnectorManager
.
prototype
.
query
=
function
(
sql
,
callee
,
options
)
{
throw
new
Error
(
'Define the query method!'
)
throw
new
Error
(
'Define the query method!'
)
}
}
...
...
lib/query-interface.js
View file @
1c6841b
...
@@ -3,7 +3,7 @@ var Utils = require('./utils')
...
@@ -3,7 +3,7 @@ var Utils = require('./utils')
module
.
exports
=
(
function
()
{
module
.
exports
=
(
function
()
{
var
QueryInterface
=
function
(
sequelize
)
{
var
QueryInterface
=
function
(
sequelize
)
{
this
.
sequelize
=
sequelize
this
.
sequelize
=
sequelize
this
.
QueryGenerator
=
this
.
sequelize
.
connectorManager
.
getQueryGenerator
(
)
this
.
QueryGenerator
=
require
(
'./connectors/'
+
this
.
sequelize
.
options
.
connector
+
'/query-generator'
)
}
}
QueryInterface
.
prototype
.
createTable
=
function
(
tableName
,
attributes
,
options
)
{
QueryInterface
.
prototype
.
createTable
=
function
(
tableName
,
attributes
,
options
)
{
...
...
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