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 20bc8b0b
authored
Oct 06, 2010
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
helper is now a class
1 parent
dc5e2609
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
2 deletions
lib/sequelize/Helper.js
lib/sequelize/Sequelize.js
test/Table/fetchAssociations.js
lib/sequelize/Helper.js
View file @
20bc8b0
This diff is collapsed.
Click to expand it.
lib/sequelize/Sequelize.js
View file @
20bc8b0
...
@@ -12,7 +12,7 @@ var Sequelize = function(database, username, password, options) {
...
@@ -12,7 +12,7 @@ var Sequelize = function(database, username, password, options) {
}
}
var
classMethods
=
{
var
classMethods
=
{
Helper
:
new
require
(
__dirname
+
"/Helper"
).
Helper
(
Sequelize
),
Helper
:
new
(
require
(
__dirname
+
"/Helper"
).
Helper
)
(
Sequelize
),
STRING
:
'VARCHAR(255)'
,
STRING
:
'VARCHAR(255)'
,
TEXT
:
'TEXT'
,
TEXT
:
'TEXT'
,
...
...
test/Table/fetchAssociations.js
View file @
20bc8b0
...
@@ -3,7 +3,6 @@ var Sequelize = require(__dirname + "/../../lib/sequelize/Sequelize").Sequelize,
...
@@ -3,7 +3,6 @@ var Sequelize = require(__dirname + "/../../lib/sequelize/Sequelize").Sequelize,
Foo
=
s
.
define
(
'Foo'
,
{
name
:
Sequelize
.
TEXT
}),
Foo
=
s
.
define
(
'Foo'
,
{
name
:
Sequelize
.
TEXT
}),
Bar
=
s
.
define
(
'Bar'
,
{
nr
:
Sequelize
.
INTEGER
})
Bar
=
s
.
define
(
'Bar'
,
{
nr
:
Sequelize
.
INTEGER
})
module
.
exports
=
{
module
.
exports
=
{
'should have no fetchedAssociations first'
:
function
(
assert
,
beforeExit
)
{
'should have no fetchedAssociations first'
:
function
(
assert
,
beforeExit
)
{
var
allowExit
=
false
var
allowExit
=
false
...
...
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