4 Commits

Author SHA1 Message Date
Tim Griesser
232fe9f151
Add Prettier (#2697)
* Add prettier
* Run files through prettier
2018-07-09 08:10:34 -04:00
Mikael Lepistö
b349ac4a8c
Various fixes to mssql dialect (#2653)
* Fixed float type of mssql to be float

* Many tests where postgres test was not actually ran at all

* Migrations to be mssql compatible

Mssql driver doesn't handle if multiple queries are sent to same transaction concurrently.

* Prevented mssql failing when invalid schema builder was executed by accident

Instead of trying to generate sql from broken schema calls, just make exception to leak before query compiling is started

* Fixed mssql trx rollback to always throw an error

Also modified some connection test query to be mssql compatible

* Fixed various bugs from MSSQL driver to make tests run

* Fixed mssql unique index to be compatible with other dialect implementations

* Enable running mssql tests on CI

* Test for #2588

* Updated tests to not be dependend on tables left from previous test rans

* Trying to make mssql server work on travis
2018-06-29 10:47:06 +03:00
Mikael Lepistö
ae1245ebcb
Fix mssql driver crashing (#2637)
* Run SQL Server tests locally running SQL server in docker

* WIP mssql test stuff

* Patched MSSQL driver to not crash knex anymore
2018-06-10 23:56:08 +03:00
Mikael Lepistö
e250260235
Added stress test, which uses TCP proxy to simulate flaky connections (#2460)
* Added stress test, which uses TCP proxy to simulate flaky connections

* Added test code for mysql and mariadb drivers

* Dropped trying to figure out support for mariasql driver

* Bunch of tests to make knex fail if connections are breaking randomly

* Added marker to printout logs before app crash

* Fixed mysql acquire connection and destroy conneciton code

Acquire connection did bind error handler too late and didn't free it on success. Destroy did free event listeners before connection end was called, so error during connection end leaked out.
2018-02-16 11:25:23 +02:00