UNPKG

mongo-sql

Version:

A mongo-like interface for sql generation, postgres-style

165 lines (113 loc) 7.91 kB
## Change Log ### v2.5.0 (2014/04/09 16:10 +00:00) - [#92](https://github.com/goodybag/mongo-sql/pull/92) Column expression parenthesis implicit (@jrf0110) - [#93](https://github.com/goodybag/mongo-sql/pull/93) Support arbitrary expressions in returning helper (@prestonp) ### v2.4.1 (2014/04/06 22:05 +00:00) - [#90](https://github.com/goodybag/mongo-sql/pull/90) window (@jrf0110) ### v2.4.0 (2014/03/28 21:26 +00:00) - [#89](https://github.com/goodybag/mongo-sql/pull/89) Queries to tables in other schemas (@jrf0110) ### v2.3.5 (2014/03/28 17:48 +00:00) - [#87](https://github.com/goodybag/mongo-sql/pull/87) drop column helper support arrays (@prestonp) ### v2.3.4 (2014/02/26 20:45 +00:00) - [#84](https://github.com/goodybag/mongo-sql/pull/84) Create changelog based on pull requests (@lalitkapoor) - [#85](https://github.com/goodybag/mongo-sql/pull/85) Support limit all (@prestonp) ### v2.3.3 (2014/02/20 00:22 +00:00) - [#83](https://github.com/goodybag/mongo-sql/pull/83) Buffer not defined in browser (@jrf0110) ### v2.3.2 (2014/02/19 23:54 +00:00) - [#82](https://github.com/goodybag/mongo-sql/pull/82) Preserve Buffer query values. (@alexmingoia) ### v2.3.1 (2014/02/08 23:01 +00:00) - [#81](https://github.com/goodybag/mongo-sql/pull/81) Casts + JSON derefs are malformed during the automated quoting (@jrf0110) ### v2.3.0 (2014/01/29 22:16 +00:00) - [#25](https://github.com/goodybag/mongo-sql/pull/25) Querying on JSON (@jrf0110) ### v2.2.14 (2014/01/27 22:35 +00:00) - [#78](https://github.com/goodybag/mongo-sql/pull/78) adding npm info (@lalitkapoor) - [#80](https://github.com/goodybag/mongo-sql/pull/80) $nin does not support Array (@jrf0110) ### v2.2.13 (2014/01/13 17:40 +00:00) - [#77](https://github.com/goodybag/mongo-sql/pull/77) Expose `quoteColumn` on root namespace (@prestonp) ### v2.2.12 (2013/11/26 20:57 +00:00) - [#76](https://github.com/goodybag/mongo-sql/pull/76) Dates not handled correctly in update where clause (@jrf0110) ### v2.2.11 (2013/11/15 15:46 +00:00) - [#74](https://github.com/goodybag/mongo-sql/pull/74) Drop constraint action needs options (@jrf0110) ### v2.2.10 (2013/11/15 06:03 +00:00) - [#73](https://github.com/goodybag/mongo-sql/pull/73) Action helper should accept an array of actions (@jrf0110) ### v2.2.9 (2013/11/12 05:05 +00:00) - [#70](https://github.com/goodybag/mongo-sql/pull/70) Window functions (@ProCynic) ### v2.2.8 (2013/10/31 15:36 +00:00) - [#67](https://github.com/goodybag/mongo-sql/pull/67) Build Join is not passed values/query when an array (@jrf0110) ### v2.2.7 (2013/10/25 17:41 +00:00) - [#65](https://github.com/goodybag/mongo-sql/pull/65) Multiple alter column statements (@jrf0110) ### v2.2.6 (2013/10/22 19:26 +00:00) - [#62](https://github.com/goodybag/mongo-sql/pull/62) Respect already quoted collection name in column (@brianc) ### v2.2.5 (2013/10/17 01:43 +00:00) - [#39](https://github.com/goodybag/mongo-sql/pull/39) Documentation (@jrf0110) ### v2.2.4 (2013/10/13 22:15 +00:00) - [#59](https://github.com/goodybag/mongo-sql/pull/59) select expression (@jrf0110) ### v2.2.3 (2013/10/05 00:35 +00:00) - [#58](https://github.com/goodybag/mongo-sql/pull/58) alter column addConstraint functionality missing (@jrf0110) ### v2.2.2 (2013/09/24 14:59 +00:00) - [#54](https://github.com/goodybag/mongo-sql/pull/54) Assume unknown query types are just functions (@jrf0110) ### v2.2.1 (2013/09/23 22:32 +00:00) - [#53](https://github.com/goodybag/mongo-sql/pull/53) Columns array > object syntax is borken (@jrf0110) ### v2.1.21 (2013/09/23 22:14 +00:00) - [#51](https://github.com/goodybag/mongo-sql/pull/51) With and Joins Ordering (@jrf0110) ### v2.1.20 (2013/09/19 20:11 +00:00) - [#52](https://github.com/goodybag/mongo-sql/pull/52) Withs are not separated properly (@jrf0110) ### v2.1.19 (2013/09/17 16:39 +00:00) - [#50](https://github.com/goodybag/mongo-sql/pull/50) Multi-Row Inserts (@jrf0110) ### v2.1.18 (2013/09/11 02:05 +00:00) - [#49](https://github.com/goodybag/mongo-sql/pull/49) Create View (@jrf0110) ### v2.1.17 (2013/09/06 22:35 +00:00) - [#43](https://github.com/goodybag/mongo-sql/pull/43) Allow null values to map to 'is null' in conditional builder (@jrf0110) ### v2.1.16 (2013/09/05 20:47 +00:00) - [#48](https://github.com/goodybag/mongo-sql/pull/48) Allow tables to accept sub-queries (@jrf0110) ### v2.1.15 (2013/09/05 01:52 +00:00) - [#47](https://github.com/goodybag/mongo-sql/pull/47) add support for distinct on (@lalitkapoor) ### v2.1.14 (2013/08/30 18:58 +00:00) - [#46](https://github.com/goodybag/mongo-sql/pull/46) allow null in values object (@ProCynic) ### v2.1.13 (2013/08/23 17:21 +00:00) - [#44](https://github.com/goodybag/mongo-sql/pull/44) select distinct (@lalitkapoor) - [#18](https://github.com/goodybag/mongo-sql/pull/18) Add Travis (@lalitkapoor) ### v2.1.12 (2013/08/19 20:54 +00:00) - [#42](https://github.com/goodybag/mongo-sql/pull/42) no from clause on update (@ProCynic) ### v2.1.11 (2013/08/19 19:43 +00:00) - [#40](https://github.com/goodybag/mongo-sql/pull/40) Allow sub-queries in column values in insert (@jrf0110) ### v2.1.9 (2013/08/13 19:28 +00:00) - [#29](https://github.com/goodybag/mongo-sql/pull/29) subselect objects in columns aren't wrapped in parens (@jrf0110) - [#36](https://github.com/goodybag/mongo-sql/pull/36) Values is undefined for joins (@jrf0110) ### v2.1.8 (2013/08/09 16:14 +00:00) - [#32](https://github.com/goodybag/mongo-sql/pull/32) Make update values consistent with insert - use 'values' helper (@jrf0110) ### v2.1.7 (2013/08/09 16:06 +00:00) - [#31](https://github.com/goodybag/mongo-sql/pull/31) Update produces whack output with empty updates object (@jrf0110) ### v2.1.6 (2013/08/05 22:34 +00:00) - [#28](https://github.com/goodybag/mongo-sql/pull/28) Consider more semantic join syntax (@jrf0110) ### v2.1.5 (2013/08/05 16:43 +00:00) - [#27](https://github.com/goodybag/mongo-sql/pull/27) Add #toQuery to query object & index (@brianc) - [#26](https://github.com/goodybag/mongo-sql/pull/26) Use local install of mocha (@brianc) ### v2.1.4 (2013/08/05 00:41 +00:00) - [#23](https://github.com/goodybag/mongo-sql/pull/23) In Array syntax (@jrf0110) ### v2.1.3 (2013/07/28 19:33 +00:00) - [#21](https://github.com/goodybag/mongo-sql/pull/21) Add in function support (@jrf0110) ### v2.1.2 (2013/07/27 23:41 +00:00) - [#17](https://github.com/goodybag/mongo-sql/pull/17) Table Aliasing (@jrf0110) ### v2.1.0 (2013/07/24 05:17 +00:00) - [#1](https://github.com/goodybag/mongo-sql/pull/1) Use universal module spec (@jrf0110) ### v2.0.8 (2013/06/11 01:51 +00:00) - [#16](https://github.com/goodybag/mongo-sql/pull/16) Alter Table Query Type (@jrf0110) ### v2.0.7 (2013/06/07 01:03 +00:00) - [#13](https://github.com/goodybag/mongo-sql/pull/13) Add with support (@jrf0110) - [#14](https://github.com/goodybag/mongo-sql/pull/14) When using a function inside of the columns, do not attach table (@jrf0110) ### v2.0.6 (2013/06/03 16:53 +00:00) - [#11](https://github.com/goodybag/mongo-sql/pull/11) Order in wrong spot (@jrf0110) ### v2.0.5 (2013/05/27 03:28 +00:00) - [#10](https://github.com/goodybag/mongo-sql/pull/10) Add default property for create table (@jrf0110) ### v2.0.4 (2013/05/20 03:46 +00:00) - [#9](https://github.com/goodybag/mongo-sql/pull/9) Drop Table (@jrf0110) ### v2.0.3 (2013/05/19 18:06 +00:00) - [#8](https://github.com/goodybag/mongo-sql/pull/8) Error when where clause is blank (@jrf0110) ### v2.0.2 (2013/05/19 06:31 +00:00) - [#7](https://github.com/goodybag/mongo-sql/pull/7) Create Table Query Type (@jrf0110) ### v2.0.1 (2013/05/18 16:24 +00:00) - [#5](https://github.com/goodybag/mongo-sql/pull/5) Make interface more declarative (@jrf0110) - [#6](https://github.com/goodybag/mongo-sql/pull/6) Continue testing out new syntax (@jrf0110) ### v1.1.0 (2013/05/05 19:28 +00:00) - [#3](https://github.com/goodybag/mongo-sql/pull/3) Add Custom Syntax (@jrf0110)