Lorefnon
e107ceacfc
Make toSQL().toNative() work for Raw to match the API for QueryBuilder ( #4058 )
...
Co-authored-by: Igor Savin <iselwin@gmail.com>
2021-01-02 16:26:29 +02:00
Igor Savin
e37aeaa31c
Prepare for 0.21.0 release ( #3811 )
2020-04-19 00:40:23 +02:00
Ricardo Graça
9aa7085b05
Rename src directory to lib ( #3338 )
2019-07-10 23:48:43 +02:00
Igor Savin
c431ffc35a
Drop support for Node.js 6. Remove babel. ( #3227 )
2019-06-04 00:37:17 +02:00
Henry Williams
2611e5a300
Fix linter errors in tests ( #2859 )
...
* fix lint errors for tests
2018-10-15 22:29:53 -04:00
Tim Griesser
232fe9f151
Add Prettier ( #2697 )
...
* Add prettier
* Run files through prettier
2018-07-09 08:10:34 -04:00
wubzz
a4bfee7751
Ensure that 'client' is provided in knex config object ( #1822 )
...
* Ensure that 'client' is provided in knex config object
* sqlite3 columncompiler: Assign 'modifiers' --after-- super() call.
* oracle columncompiler: Assign 'modifiers' --after-- super() call.
2016-12-11 18:23:44 +02: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
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
wubzz
6d820b9ff7
Remove test "undefined named bindings are ignored" as they are no longer ignored.
2016-05-28 19:51:47 +02:00
wubzz
a152d92408
Only call prepBindings when a client is set on the instance of Raw. Also add a test so this does not break in the future.
2016-03-15 21:47:59 +01:00
wubzz
f286da2796
Preserve original bindings at all times. Move prepBindings calls to toSQL() instead. Enforce 'bindings' to always be present in .toSQL() resultset.
2016-03-15 21:47:59 +01:00
wubzz
72a3617e2b
Updated the tests for named bindings to accomodate for the decission not to process undefined values.
2016-03-11 20:42:29 +01:00
Jurko Gospodnetić
16a076c1a0
trim trailing spaces
...
Only left alone ones in `test/tape/transactions.js` which would just
cause unnecessary conflicts and get cleaned up by separate pull
request #1257 anyway.
2016-03-08 08:44:01 +01:00
Mikael Lepistö
ca3c1d0a22
Allow named parameter to be at start of knex.raw() sql string
2015-11-10 23:26:19 +02:00
Mikael Lepistö
fdaba4705e
Fix for #1003
2015-11-10 23:26:19 +02:00
Tim Griesser
1eed91ad6d
Reference issue id in test
2015-06-01 09:14:45 -04:00
Tim Griesser
cf757a5647
Fix #853 , raw bindings should be optional
2015-06-01 07:30:38 -04:00
Tim Griesser
3482c650d4
Improvements to object value bindings
2015-05-06 10:48:05 -04:00
Tim Griesser
3e1872731e
Fix for #605 , options preserved in standalone Raw query
2015-04-30 18:07:16 -04:00
Tim Griesser
f735dcb9c8
Raw identifiers and named parameters
...
Adds ?? for interpolating identifiers in raw
statements. Also adds raw(sql, obj) for
named :key syntax. Alternatively, 🔑
(trailing colon) may be used to specify an
identifier as a parameter.
2015-04-27 15:58:48 -04:00