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 667cae4f
authored
Sep 03, 2013
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo
1 parent
77298788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
lib/dialects/abstract/query-generator.js
lib/dialects/abstract/query-generator.js
View file @
667cae4
...
@@ -274,13 +274,15 @@ module.exports = (function() {
...
@@ -274,13 +274,15 @@ module.exports = (function() {
},
},
/*
/*
Quote an object based on its type. This is a more general version of quoteIdentifier
Quote an object based on its type. This is a more general version of quoteIdentifier
s
Strings: should proxy to quoteIdentifiers
Strings: should proxy to quoteIdentifiers
Arrays: First argument should be qouted, second argument should be append without quoting
Arrays: First argument should be qouted, second argument should be append without quoting
Objects:
Objects:
If fn is set, the string should start with the value of fn, starting paren,
* If raw is set, that value should be returned verbatim, without quoting
the values of cols (which is assumed to be an array), quoted and joined with ', ', unless they are themselves functions
* If fn is set, the string should start with the value of fn, starting paren, followed by
If direction is set, should be prepended
the values of cols (which is assumed to be an array), quoted and joined with ', ',
unless they are themselves objects
* If direction is set, should be prepended
Currently this function is only used for ordering / grouping columns, but it could
Currently this function is only used for ordering / grouping columns, but it could
potentially also be used for other places where we want to be able to call SQL functions (e.g. as default values)
potentially also be used for other places where we want to be able to call SQL functions (e.g. as default values)
...
...
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