Commit graph

30 commits

Author SHA1 Message Date
Ryan Schmukler
0531ae0268 feat: insert hashmaps with sql.insert-multi!
Updates the API of `sql/insert-multi!` to support sequences of hash maps
which will automatically be converted into rows and columns.
2022-05-20 12:43:48 -05:00
Sean Corfield
dc240652fc It's 2021 2021-01-29 16:13:05 -08:00
Sean Corfield
931023de09 Address #121 by adding conditional builders/options for CSK 2020-07-08 11:52:22 -07:00
Sean Corfield
3c4638a269 Support :columns option to filter results in find/get 2020-06-25 12:48:22 -07:00
Sean Corfield
4de1d445ec Address #124 by fixing bug in builder; adding tests 2020-06-24 22:25:28 -07:00
Sean Corfield
03792303bc Fixes #123 by adding type-hinting functions 2020-06-24 11:23:40 -07:00
Sean Corfield
85734ab724 Prep for 1.0.476
Extend default options behavior to `next.jdbc.sql` functions.
2020-06-22 23:16:05 -07:00
Sean Corfield
73aea0ceef Add in jTDS tests 2020-06-06 17:05:27 -07:00
Sean Corfield
eda9c93a1c Alpha-order of DB tests 2020-03-18 11:35:18 -07:00
Sean Corfield
780c759541 Complete support for MariaDB #100
Adds tests and test dependencies, based on a new environment variable. 
Updates change log. Documents difference in generated key return between 
MySQL and MariaDB.
2020-03-16 15:19:21 -07:00
Sean Corfield
425d1c367c Extend copyright to 2020 2020-01-01 13:13:41 -08:00
Sean Corfield
205abe2faa Fixes #81 by splitting next.jdbc.sql 2019-12-11 16:42:28 -08:00
Sean Corfield
5b795f95a7 Add optional MS SQL Server testing 2019-11-15 22:37:42 -08:00
Sean Corfield
774e08236f Add optional MySQL testing 2019-11-15 15:38:51 -08:00
Sean Corfield
dd70625e8f Clarify behavior when no rows match a query 2019-11-01 09:34:14 -07:00
Sean Corfield
296cd51aa5 PostgreSQL IN/= ANY(?) test
Hopefully documentation to come!
2019-09-04 18:43:30 -07:00
Sean Corfield
9372ce11cd Fix #50 by testing against (embedded) PostgreSQL
This is the first database that returns lowercase columns in results so 
there are a lot of conditionals in the tests now. It also returns entire 
rows on inserts instead of just the generated key.
2019-07-24 17:32:58 -07:00
Sean Corfield
4457161305 Assert/spec/tests for empty cols in insert-multi! 2019-07-11 12:52:36 -07:00
Sean Corfield
4d7a5a440b Fix #43 by relaxing the spec for insert-multi!
Adds tests for `insert-multi!` that pass sequences instead of vectors.
2019-07-11 12:34:02 -07:00
Sean Corfield
821f9b1a5a Fixes #44
Also adds `assert`s in SQL-generating functions, instead of just 
producing illegal SQL.
2019-07-11 12:11:32 -07:00
Sean Corfield
ba4dc837e1 Fixes #33 by improving specs 2019-07-02 18:50:25 -07:00
Sean Corfield
fdfb0697ec Address #24 by setting warn on reflection in tests
This highlights the reflection on `.close` (in the connection tests).
2019-05-29 09:04:21 -07:00
Sean Corfield
adf5a03e05 Address #21 by adding next.jdbc.specs
Docs still need to be updated for this!
2019-05-21 21:45:05 -07:00
Sean Corfield
2702a01773 Multi-DB testing
Instead of just testing against H2 in-memory, we now test against Derby, 
H2 in-memory, H2 on-disk, hsqldb, and SQLite
2019-04-21 17:10:29 -07:00
Sean Corfield
03b09f6e03 Alpha 5; fixes #12 by adding :order-by option to for-query 2019-04-21 13:42:33 -07:00
Sean Corfield
214470bf9d Use auto_increment so H2 will return generated keys
Also update the result set builder used in one test
2019-04-20 23:42:22 -07:00
Sean Corfield
9b3eeb02d3 Test SQL-level DB functions 2019-04-19 23:25:03 -07:00
Sean Corfield
3b0b059f62 Add connection tests
Improve handling of relative files with H2 database connections.
2019-04-18 21:35:38 -07:00
Sean Corfield
d59b1ec2fb Basic SQL tests and bug fix!
Multi-row insert did not apply `:column-fn` correctly.
2019-04-18 18:31:15 -07:00
Sean Corfield
e1fa7055b4 Stub test namespaces
Yes, real tests are coming soon...
2019-04-18 14:15:15 -07:00