Brian Carlson
|
09c9b89cd9
|
Add support for table.column.toQuery()
Add tests to support the behavior.
|
12 years ago |
Sascha Depold
|
ef9aee41ad
|
added possibility to chain from statements
|
12 years ago |
bmc
|
951a55b76a
|
Allow chainable selects
|
12 years ago |
Brian Carlson
|
f5b6961301
|
Add 'NOT LIKE' support
|
12 years ago |
Brian Carlson
|
275488d8fe
|
Add count().distinct() to columns
|
12 years ago |
Brian Carlson
|
a9a8a9983b
|
Add support for DISTINCT
usage: `users.select(users.email.distinct())`
|
12 years ago |
Brian Carlson
|
5b3954585f
|
Add ability to call #where with multiple arguments
Initial work on buliding a more complex and feature-full
where clause builder
|
12 years ago |
Brian Carlson
|
31ef80aeb9
|
Use mocha instead of weird 1/2 of tap for tests
I kept having to scroll back several hundered lines when a test
would fail and the output was ridiculously verbose.
|
12 years ago |
Brian Carlson
|
a093b4c07c
|
Add 'toQuery' to the prototype of all nodes
This allows doing something like this:
`user.join(photos).toQuery().text`
to build just a part of a query.
|
12 years ago |
Brian Carlson
|
d8027b0a5c
|
Allow non-query nodes to be turned into strings
|
12 years ago |
Chaoran Yang
|
bcf08b79c7
|
Add rename clause for alter table
|
12 years ago |
Casey Foster
|
270d7fb925
|
LIMIT and OFFSET can accept a subQuery
|
12 years ago |
Eric Sessoms
|
c32b00b99b
|
added more tests of clause ordering
|
12 years ago |
Eric Sessoms
|
680fd909f6
|
minor cleanup, mostly related to function vs block scoping
|
12 years ago |
brianc
|
78f3221e30
|
allow SELECT/FROM/WHERE in any order
|
12 years ago |
brianc
|
aeaf00996c
|
cleanup node inheritance
|
12 years ago |
brianc
|
1f1f5cb25d
|
allow select to take array of columns
|
12 years ago |
brianc
|
6a469fd511
|
allow shortcut where clauses in 'and' and 'or'
|
12 years ago |
brianc
|
e8c449d0f9
|
add tests for 'returning' and make it accept array of columns
|
12 years ago |
brianc
|
b76e8bd15a
|
allow order clause to accept array of columns
|
12 years ago |
brianc
|
7647dc3911
|
cleanup trailing whitespace
|
12 years ago |
brianc
|
779fcc6e46
|
allow group to accept array of columns
|
12 years ago |
brianc
|
9a77ca0d0f
|
make delete take where clause directly
|
12 years ago |
Casey Foster
|
7c44b1bc7a
|
Fix subQuery when used as a binary right
|
12 years ago |
brianc
|
7711228c66
|
allow any arbitrary properties to be set on columns
|
12 years ago |
Casey Foster
|
4fffaad6d6
|
Fix ORDER BY syntax error in PG
|
12 years ago |
Paul Winkler
|
e201e00dd5
|
Allow arbitrary SQL text as TextNode in where / and / or clauses and surround by brackets
|
12 years ago |
Paul Winkler
|
cdf51d9dcd
|
change test case to give a varied sub post request with and without AS
|
12 years ago |
Paul Winkler
|
7784a9eaf3
|
SQLite cannot add more than one column per alter table statement. Call sqlite tests.
|
12 years ago |
Paul Winkler
|
250f5ecb50
|
sqlite dialect and all sqlite tests. subqueries can now have their columns selected as tables
|
12 years ago |
Casey Foster
|
70252ff886
|
Add DEFAULT VALUES support for PG INSERT
|
12 years ago |
brianc
|
6d3dda68aa
|
rename 'postgres' dir to 'dialects'
|
12 years ago |
brianc
|
e5d789f0e3
|
make all tests run via 'npm test' command
|
12 years ago |
Paul Winkler
|
edb19ca4ff
|
globally replace quote character in quoted identifiers, and add a test case for this
|
12 years ago |
Paul Winkler
|
b9a946f20e
|
let the tests say which dialect they are for
|
12 years ago |
Paul Winkler
|
4bd577c54e
|
remove duplicate requiring of dialects
|
12 years ago |
Paul Winkler
|
1967e70898
|
alter tests to take quoted aliases into account, add support for testing more than one dialect, add all test cases for mysql.
The test/postgres directory should probably be renamed to test/dialects
|
12 years ago |
Paul Winkler
|
7f53d5a69d
|
correctly visit direction text node on postgres and correct test to only have one space before direction
|
12 years ago |
Eric Sessoms
|
dc1987bdc8
|
lints cleanly
|
12 years ago |
Eric Sessoms
|
12fb2dcb88
|
should be able to chain leftJoin
|
12 years ago |
Julian Lannigan
|
318037be4d
|
added the aggregate COUNT function
small README.md update
|
12 years ago |
Peter Rust
|
2ca7c423a1
|
Fixed update() so it would prefix ambiguous source columns
|
12 years ago |
Peter Rust
|
e83e49164e
|
Added support for passing an object to .where()
|
12 years ago |
benracine
|
90a8516040
|
add rename column functionality
|
12 years ago |
Peter Rust
|
d3af816748
|
Added support for passing an object to .where()
|
12 years ago |
Peter Rust
|
f9c9d2a7e0
|
Added DROP TABLE support and IF (NOT) EXISTS
|
12 years ago |
Justin Reidy
|
5a483024b2
|
Regression on column update logic where null values are throwing a NPE on val.toNode
|
12 years ago |
Peter Rust
|
822e94836c
|
Added ALTER TABLE support (add/drop column)
|
12 years ago |
bmc
|
deb36e56b8
|
fix test
|
12 years ago |
Peter Rust
|
e66f1f9afb
|
Add support for setting to columns in addition to parameters in UPDATE statements
|
12 years ago |