不要怂,就是干,撸起袖子干!

Commit 152215bc by “cjhgit”

「update」support partition

1 parent 8931bf6c
...@@ -1755,6 +1755,10 @@ const QueryGenerator = { ...@@ -1755,6 +1755,10 @@ const QueryGenerator = {
selectFromTableFragment(options, model, attributes, tables, mainTableAs) { selectFromTableFragment(options, model, attributes, tables, mainTableAs) {
let fragment = 'SELECT ' + attributes.join(', ') + ' FROM ' + tables; let fragment = 'SELECT ' + attributes.join(', ') + ' FROM ' + tables;
if (options.partition) {
fragment += ` partition (${options.partition})`
}
if (mainTableAs) { if (mainTableAs) {
fragment += ' AS ' + mainTableAs; fragment += ' AS ' + mainTableAs;
} }
......
{ {
"name": "sequelize", "name": "@yunser/sequelize",
"description": "Multi dialect ORM for Node.JS", "description": "Multi dialect ORM for Node.JS",
"version": "0.0.0-development", "version": "4.44.5",
"author": "Sascha Depold <sascha@depold.com>", "author": "Sascha Depold <sascha@depold.com>",
"contributors": [ "contributors": [
{ {
......
# npm run build
npm publish --access public
cnpm sync @yunser/sequelize
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!