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 d259cec7
authored
Mar 04, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs
1 parent
69110093
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
docs/data.json
docs/files/lib_dialects_abstract_query.js.html
docs/files/lib_dialects_sqlite_query-interface.js.html
docs/data.json
View file @
d259cec
...
...
@@ -311,13 +311,13 @@
},
{
"file"
:
"lib/dialects/abstract/query.js"
,
"line"
:
3
45
,
"line"
:
3
50
,
"description"
:
"The function takes the result of the query execution and groups
\n
the associated data by the callee.
\n\n
Example:
\n
groupDataByCalleeFactory([
\n
{
\n
callee: { some: 'data', id: 1 },
\n
association: { foo: 'bar', id: 1 }
\n
}, {
\n
callee: { some: 'data', id: 1 },
\n
association: { foo: 'bar', id: 2 }
\n
}, {
\n
callee: { some: 'data', id: 1 },
\n
association: { foo: 'bar', id: 3 }
\n
}
\n
])
\n\n
Result:
\n
Something like this:
\n\n
[
\n
{
\n
callee: { some: 'data', id: 1 },
\n
association: [
\n
{ foo: 'bar', id: 1 },
\n
{ foo: 'bar', id: 2 },
\n
{ foo: 'bar', id: 3 }
\n
]
\n
}
\n
]"
,
"class"
:
"QueryInterface"
},
{
"file"
:
"lib/dialects/abstract/query.js"
,
"line"
:
4
05
,
"line"
:
4
10
,
"description"
:
"This function will prepare the result of select queries with joins."
,
"params"
:
[
{
...
...
@@ -542,11 +542,11 @@
},
{
"message"
:
"Missing item type
\n
The function takes the result of the query execution and groups
\n
the associated data by the callee.
\n\n
Example:
\n
groupDataByCalleeFactory([
\n
{
\n
callee: { some: 'data', id: 1 },
\n
association: { foo: 'bar', id: 1 }
\n
}, {
\n
callee: { some: 'data', id: 1 },
\n
association: { foo: 'bar', id: 2 }
\n
}, {
\n
callee: { some: 'data', id: 1 },
\n
association: { foo: 'bar', id: 3 }
\n
}
\n
])
\n\n
Result:
\n
Something like this:
\n\n
[
\n
{
\n
callee: { some: 'data', id: 1 },
\n
association: [
\n
{ foo: 'bar', id: 1 },
\n
{ foo: 'bar', id: 2 },
\n
{ foo: 'bar', id: 3 }
\n
]
\n
}
\n
]"
,
"line"
:
" lib/dialects/abstract/query.js:3
45
"
"line"
:
" lib/dialects/abstract/query.js:3
50
"
},
{
"message"
:
"Missing item type
\n
This function will prepare the result of select queries with joins."
,
"line"
:
" lib/dialects/abstract/query.js:4
05
"
"line"
:
" lib/dialects/abstract/query.js:4
10
"
},
{
"message"
:
"Missing item type
\n
Search for an instance."
,
...
...
docs/files/lib_dialects_abstract_query.js.html
View file @
d259cec
...
...
@@ -410,9 +410,14 @@ module.exports = (function() {
dao[accessor] = isEmpty ? null : daoInstance
} else {
dao[accessor] = dao[accessor] || []
if (! isEmpty)
if (!isEmpty) {
dao[accessor].push(daoInstance)
}
}
//
add the accessor to the eagerly loaded associations array
dao.__eagerlyLoadedAssociations = Utils._.uniq(dao.__eagerlyLoadedAssociations.concat([accessor]))
})
}
...
...
docs/files/lib_dialects_sqlite_query-interface.js.html
View file @
d259cec
...
...
@@ -90,7 +90,7 @@
<div
class=
"file"
>
<pre
class=
"code prettyprint linenums"
>
Utils = require(
"
..
/
..
/
utils
"
)
var
Utils = require(
"
..
/
..
/
utils
"
)
/
**
Returns an object that treats SQLite
'
s inabilities to do certain queries.
...
...
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