Di Wu
bfa041bc35
pass string flag to subquery
12 years ago
Di Wu
07371561e3
dialect getString
12 years ago
Di Wu
b55d30ecf7
toQuery with dialect argument
12 years ago
Joyce Chen
b7f0fd0fb9
commas for javascript
12 years ago
Joyce Chen
d2dd4d9291
add shift, unshift operations
12 years ago
Di Wu
d31c6b3a97
Column doesn't need to use delayed runtime valueExpressionMixin
12 years ago
Di Wu
b688d030d8
Alias Node, add alias behavior to unary, binary, ternary and function calls, with tests
12 years ago
Di Wu
ebf53a16da
Adding in shortcut for standard functions, next step is to figure out how to load dialect specific functions
12 years ago
Joyce Chen
e7223f26d5
Add sql.functionCall. Example: sql.select(sql.functionCall('concat', 'hello', 'world'))
12 years ago
Di Wu
70053bcd0f
Adding having clause and tests
12 years ago
Di Wu
8cba3ac7bc
fix up comment in unary, fix up delete-tests
12 years ago
Di Wu
163180f458
Refactor Sql into a class, same api as before
12 years ago
Gorgi Kosev
bf83963dd0
fix Table.define, add test, remove npm-debug.log
12 years ago
Gorgi Kosev
dac9724025
fixed everything necessary to make sql.create work
12 years ago
Gorgi Kosev
ab0fa41663
failing tests for multi-dialect create
12 years ago
Di Wu
1fff1b66c1
dialect refactor to have unary,binary,ternary return array of string
12 years ago
Di Wu
6b2ab16b1a
Re-ordering unary, binary, ternary in valueExpression
12 years ago
Di Wu
aa8422e1b5
Ternary between and tests
12 years ago
Di Wu
03287e45d5
binary and unary clause tests
12 years ago
Di Wu
f840af4f35
Cleanup for jshint
12 years ago
Joyce Chen
ef951a9b96
Mixin only once. Set flag to true once mixed
12 years ago
Joyce Chen
4fcb84874b
whoops, accidentally pushed when not ready. fixed some bugs in previous commit
12 years ago
Joyce Chen
48a81ce163
Break out ValueExpressionMixin into its own file, and mix it into the value expressions BinaryNode, UnaryNode, and Column. Will make composing such value expression nodes easier in the future.
12 years ago
Di Wu
55810ac805
Fix up errors caught by jshint
12 years ago
Joyce Chen
e668e4e8de
Fix nits; capitalization and spaces.
12 years ago
Joyce Chen
ab6655d679
Let binary expressions (e.g. boolean AND, OR, =, or arithmetic +, -, ...) be composable
12 years ago
Joyce Chen
55b9c0c664
Add SQL arithmetic operators as binaryMethods
12 years ago
Di Wu
e6ea2016fe
fix spacing in comments
12 years ago
Di Wu
0dea29827b
address all jshint issues
12 years ago
Brian Carlson
fcd21053b8
Fix toQuery() on subquery column
12 years ago
thadclay
f5467bedf8
Add support for SUM and AVG aggregate functions
12 years ago
Sascha Depold
79a3cc2504
charset support
12 years ago
Sascha Depold
155eb2bafb
allow definition of mysql engine
12 years ago
Sascha Depold
9b1f54233b
allow silent add column
12 years ago
Sascha Depold
402b759f58
added support for min and max queries
12 years ago
tmont
8fb83185c2
added special 'property' field to columns
When defining a column, you can specify a "property" field
that will allow a more programmer-friendly name to be used
when selecting fields.
e.g.
var user = sql.define({
name: 'user',
columns: [{ state: 'state_or_province', property: 'state' }]
});
user.select(user.state);
12 years ago
Sascha Depold
8646cd9071
Revert "support ifExists and ifNotExists for index#create / index#drop"
This reverts commit f71207edb9
.
12 years ago
Sascha Depold
f71207edb9
support ifExists and ifNotExists for index#create / index#drop
12 years ago
Sascha Depold
eb8afaf88c
fixed syntax of index creation
12 years ago
Sascha Depold
f894d445bd
allow multiple calls of on for index creation
12 years ago
Sascha Depold
7d4b4a7cec
added support for dropping indexes
12 years ago
Sascha Depold
b9942f77af
support for fulltext and spatial indexes
12 years ago
Andrey Popp
39a3e86f30
Table::select() creates *-select by default
Test case provided.
12 years ago
Sascha Depold
f09e93118a
make sure that the generated index name is correctly sorted
12 years ago
Sascha Depold
0093f98edb
throw an error if no columns have been passed to index creation
12 years ago
Sascha Depold
e652985af2
added test for index creation without custom name
12 years ago
Sascha Depold
2d80c3941a
test for sqlite
12 years ago
Sascha Depold
60a52dc91e
creating indexes is now based on chaining
12 years ago
Sascha Depold
d61bdaebed
create on indexes
12 years ago
Sascha Depold
0bd0ee7207
added methods for reading indexes
12 years ago