1720 Commits

Author SHA1 Message Date
Tim Griesser
f5bad1ae54 Simplifying internal client structure 2016-09-13 08:15:58 -04:00
Tim Griesser
53c5984a3b Simplify transaction classes 2016-09-12 18:45:35 -04:00
Tim Griesser
30342c32ae Simplify formatter use 2016-09-12 18:27:30 -04:00
Tim Griesser
f05b12f123 Deprecate VERSION, update changelog 2016-09-12 18:11:56 -04:00
Tim Griesser
ee217ce2a1 Fix PG string escaping behavior (#1661)
* Modify test suite to test #1602
We shouldn’t be testing the “default” client class. Replace any
usages with postgresql

* Simplify knex.raw, deprecate global Knex.raw usage

* Remove unused bluebird shim

* Remove old / unused test comments

* Don't capture Pool2 error event

* Fix pg string escaping & parameterization #1602, #1548
2016-09-12 18:01:47 -04:00
Alexandre Tiertant
57a67cdadc Fix #906 Oracle auto increment manual insert id (#1526)
* Oracle sequence trigger handle manual id inserts

* Update schema tests
2016-09-12 10:52:14 +03:00
Emilio Forrer
dc3749433b Fix #1638 - Websql - Unhandled rejection TypeError: Cannot read property 'timeout' of undefined (#1639) 2016-08-24 19:02:13 -04:00
Cody Zuschlag
b1fd53ed93 fix: allow oracledb connectString (#1574) 2016-08-21 20:11:16 +03:00
Tim Griesser
6fa485302b Bluebird cleanup (#1618)
* Reference Bluebird directly, Remove deprecated .exec method
* Remove outdated bench scripts
* Remove old .jshintrc file
2016-08-09 17:23:07 -04:00
Tim Griesser
264035176f Remove old .jshintrc file 2016-08-09 17:11:45 -04:00
Tim Griesser
4d056845b9 Remove outdated bench scripts 2016-08-09 17:11:08 -04:00
Tim Griesser
0b25f6bd0c Upgrading to Babel 6 (#1617)
* Upgrading to Babel 6
* Fix assignment issue in mssql
* Drop Travis for node 0.10
2016-08-09 17:03:08 -04:00
Tim Griesser
ad859a707b Removing client build (#1616)
* Removing client build
2016-08-09 14:01:24 -04:00
Tim Griesser
eda7151832 release 0.11.10 0.11.10 2016-08-09 13:35:13 -04:00
Tim Griesser
b2bd2d902a Prep for release 2016-08-09 13:33:47 -04:00
Tim Griesser
778016620c Add CHANGELOG.md (#1615)
* Add CHANGELOG.md
* Updated changelog for master
2016-08-09 13:14:53 -04:00
Tim Griesser
8811946979 Merge pull request #1611 from karatheodory/fix-docs-styles
Added padding to avoid header sticking to the example usage.
2016-08-09 09:38:37 -04:00
Tim Griesser
71decbea9f Merge pull request #1610 from karatheodory/master
Updated docs to note schema builder is getter.
2016-08-09 09:38:24 -04:00
Vasily Loginov
e7a8e7d5fa Added padding to avoid header sticking to the example usage. 2016-08-06 22:24:16 +06:00
Vasily Loginov
dd4db6b7d9 Updated docs to note schema builder is getter. 2016-08-06 22:00:07 +06:00
Tim Griesser
fb43cff1f5 Remove unused files 2016-08-04 11:30:28 -04:00
mashaalmemon
831ba2fe41 Uint8Array data (e.g. Postgres "bytea" type) erroneously considered "undefined" by recent 0.11.7 update. (#1601)
* Made modification so that attributes with data stored in typed arrays such as Uint8Arrays are treated as "Arrays" vs as "Objects". For example, pgsql "bytea" type column data is passed back as Uint8Arrays by the node pgsql driver "pg" and without this modification, such data will fail the "containsUndefined" test.

* Made modification so that attributes with data stored in typed arrays such as Uint8Arrays are automatically treated as "not undefined" (vs as "Array" which will result in unecessary testing of Array contents). For example, pgsql "bytea" type column data is passed back as Uint8Arrays by the node pgsql driver "pg" and without this modification, such data will fail the "containsUndefined" test with previous implementation.
2016-07-31 22:22:18 +10:00
Tim Ruffles
751ab2a423 Revert "[docs] document multi-column order-by"
- was a fat-finger on github UI

This reverts commit ad0aa8f68f5930516cc967f61e28a5d62e10d9d2.
2016-07-26 16:52:57 +01:00
Tim Ruffles
ad0aa8f68f [docs] document multi-column order-by
this method can take an array of columns, but it is not documented
2016-07-26 16:50:29 +01:00
Nick Whiteley
f969d5236a MSSQL columnInfo() had hard coded schema name (#1585)
* MSSQL columnInfo() had hard coded schema name

* Change let to const for columnInfo bindings array
2016-07-26 10:00:57 +02:00
Mikael Lepistö
54563dc8e0 release 0.11.9 0.11.9 2016-07-22 02:34:35 +03:00
Mikael Lepistö
94b016d145 Updated changelog for 0.11.9 2016-07-22 02:29:10 +03:00
Mikael Lepistö
b74cd69e90 Reverted knex client breaking change 2016-07-22 02:22:45 +03:00
Mikael Lepistö
ea06a429f6 release 0.11.8 0.11.8 2016-07-21 23:51:33 +03:00
Mikael Lepistö
51ea89bf60 Updated changelog for 0.11.8 2016-07-21 23:47:24 +03:00
statyan
6ecd8f3793 Fixed knex #1577 (#1578)
* Fixed knex #1577
Aslo corrected tests for primarykey

* Fix for installing from github

* Fix for installing from github

* Fix for installing from github
2016-07-20 11:22:17 +10:00
Trevor Smith
b1a95b181e Allow named bindings to be escaped. (#1576)
* Allow named bindings to be escaped.

* Use a literal for the named parameter binding regex.
2016-07-19 20:42:49 +03:00
Dmitry Vdovin
289f17e21b Fix incorrect escaping of backslashes in SqlString.escape (#1545) 2016-07-02 00:45:50 +03:00
Rhys van der Waerden
3ea653497b Merge pull request #1532 from timwis/patch-1
Docs: Set "foreign" method name to lowercase
2016-06-27 12:45:45 +10:00
Tim Wisniewski
c27f98eb36 Docs: Set "foreign" method name to lowercase
Assuming this was just a typo.
2016-06-26 12:18:40 -04:00
Alexandre Tiertant
53d089bffb add node-oracledb support (#990)
* add node-oracledb support

* move file in src directory

* remove unused var

* correct pool release
correct date error

* correct bugs

* add some test

* correct a test error

* correct time zone error in schema tests

* correct time zone error in schema tests

* use inheritance to remove duplicated code

* use inherit in formatter to remove dupplicated code

* remove unused code

* remove unused require

* add blob insert support

* add queryCompiler to dialect prototype

* export queryCompiler

* fix bugs

* Correct tests

* handle returning

* clean code

* clean code

* Fix returning

* Multiple insert with blob

* Add SELECT BLOB support

* Finalise update

* Fix test error

* Fix insert error without returning

* Add transaction and code cleaning

* build

* Fix pool ping error

* Add missing rejecter

* build

* Fix error in delete

* Fix transaction rollback error throwing

* Fix typo in commit

* Fix rollback rejecter

* Remove BLOB tests

* remove lib file

* fixed oracledb linter errors

* Add .completed to transaction acquireConnection()
2016-06-20 18:03:52 +03:00
Rhys van der Waerden
d1137953be release 0.11.7 0.11.7 2016-06-19 16:33:27 +10:00
Rhys van der Waerden
ec7349ec4e Prepare for 0.11.7 release 2016-06-19 16:31:28 +10:00
Rhys van der Waerden
fab1d07730 Merge pull request #1516 from SuperSpyTX/patch-1
Fix dependency issue with 'node-uuid'
2016-06-19 16:28:06 +10:00
Joe
82f4f1fd0d Fix dependency issue with 'node-uuid'
It appears that in Issue #1510, unique IDs were added to queries.  The dependency that was used was a development dependency, which isn't installed as a default.  This change makes sure the dependency is installed by default.
2016-06-19 02:02:27 -04:00
Rhys van der Waerden
b21156d920 Prevent error in gh-pages script
If gh-pages branch was out of date this should prevent an error when pushing to origin.
2016-06-18 15:21:17 +10:00
Rhys van der Waerden
fcb0430e3e Restore current version link in docs 2016-06-18 15:20:32 +10:00
Rhys van der Waerden
95c666568c release 0.11.6 0.11.6 2016-06-18 15:12:21 +10:00
Rhys van der Waerden
11c4999e1d Prepare for 0.11.6 2016-06-18 15:01:25 +10:00
wubzz
acbc8a111a Merge pull request #1510 from funnylookinhat/query-uuid
Add query-specific uuid to enable finite metrics.
2016-06-17 20:14:18 +02:00
David Overcash
6193701c8d Typo. 2016-06-17 11:04:35 -07:00
David Overcash
9ec6984cc3 Fix a test that wasn't able to compare with new __knexQueryUid field. 2016-06-17 10:57:03 -07:00
David Overcash
f5137f2d67 Remove failing test to verify theory. 2016-06-17 10:42:40 -07:00
David Overcash
994bef1709 Somehow got a bad file committed. 2016-06-17 10:24:44 -07:00
David Overcash
a8cbbfc193 Add tests for __knexQueryUid and an additional test for the query event. 2016-06-17 09:53:54 -07:00