Commit graph

452 commits

Author SHA1 Message Date
Sean Corfield
ea7d42741b Note SettableParameter can be extended via metadata 2019-04-20 23:34:19 -07:00
Sean Corfield
2f03b73e2c Document transaction handling 2019-04-20 22:51:16 -07:00
Sean Corfield
d688e639d0 Document prepared statement handling 2019-04-20 22:28:21 -07:00
Sean Corfield
2ab35132a7 Document Result Set Builders
And sketch out the remaining documentation outline.
2019-04-20 22:00:40 -07:00
Sean Corfield
954ef5ad47 Add cljdoc config 2019-04-20 17:55:31 -07:00
Sean Corfield
4640da228a Document next.jdbc.sql namespace 2019-04-20 17:55:16 -07:00
Sean Corfield
61482eedeb Ignore example H2 DB files 2019-04-20 17:54:58 -07:00
Sean Corfield
3102e9a074 Fix typo in Getting Started 2019-04-20 17:53:59 -07:00
Sean Corfield
684521ab1e Initial Getting Started documentation 2019-04-20 16:03:32 -07:00
Sean Corfield
6e1dba1bce Fix user (name) property 2019-04-20 16:03:01 -07:00
Sean Corfield
579558f5be Create pom.xml for upcoming deployment 2019-04-20 11:46:02 -07:00
Sean Corfield
9b3eeb02d3 Test SQL-level DB functions 2019-04-19 23:25:03 -07:00
Sean Corfield
228335d2f3 Turn all the examples into tests 2019-04-19 22:51:48 -07:00
Sean Corfield
f691d59be7 Update set-parameters docstring
Uses set-parameter and SettableParameter now, not `.setObject`
2019-04-19 22:51:05 -07:00
Sean Corfield
19dc0e4703 Add test based on record/custom builder 2019-04-19 22:50:29 -07:00
Sean Corfield
3588d526fa execute-all should return a vector even for update counts 2019-04-19 22:50:10 -07:00
Sean Corfield
d3e643053d Tell Joker (linter) about with-transaction 2019-04-19 22:49:24 -07:00
Sean Corfield
e3c193e936 Add a test for -execute-all 2019-04-19 21:59:42 -07:00
Sean Corfield
12e396683c Add tests for map-like reducible! result set
Ensures basic associative/lookup access do not cause row building; 
ensures assoc/seq produce real maps; ensure datafiable-row produces a 
real map with metadata.
2019-04-19 21:53:55 -07:00
Sean Corfield
bfda745a70 Add row builder tests; fix row builder bug in execute-one 2019-04-18 23:03:09 -07:00
Sean Corfield
d5ee7defd9 Test cleanup 2019-04-18 22:43:27 -07:00
Sean Corfield
d4f79a68fd Add datafication tests; fix regex bug! 2019-04-18 22:43:19 -07:00
Sean Corfield
42cfe88859 Stub test namespaces
Outline some of the things we might test.
2019-04-18 21:51:58 -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
67a2d3918c Basic quoted tests 2019-04-18 18:30:38 -07:00
Sean Corfield
e1fa7055b4 Stub test namespaces
Yes, real tests are coming soon...
2019-04-18 14:15:15 -07:00
Sean Corfield
2cd9e9372d Fix docstring typos 2019-04-18 14:09:07 -07:00
Sean Corfield
e85cbf7c95 Make datafy/nav implementation more robust
Also some documentation cleanup
2019-04-18 14:06:14 -07:00
Sean Corfield
8c508b8416 Documentation cleanup 2019-04-18 13:19:59 -07:00
Sean Corfield
688e94d9d8 Link to Contrib discussion issue 2019-04-18 08:29:46 -07:00
Sean Corfield
3b2d2a194c Update to latest API
Declares API to have reached stability and updates usage and examples to 
latest API.
2019-04-18 08:15:02 -07:00
Sean Corfield
f7c753d696 Update tests and timings 2019-04-18 08:13:16 -07:00
Sean Corfield
7f2d3479e9 Split :entities into two options
`:table-fn` and `:column-fn`
2019-04-18 08:12:56 -07:00
Sean Corfield
e5ea6af959 Rewrite builders as records
This seems to be very slightly faster than using `reify`. Also rename 
the map builder to `as-maps` and add unqualified variants of builders.
2019-04-18 08:12:12 -07:00
Sean Corfield
90a4b7d727 Update README for syntactic sugar functions 2019-04-18 01:03:39 -07:00
Sean Corfield
7b98b7337c One more example 2019-04-18 00:43:10 -07:00
Sean Corfield
86db20b94b Improve default behavior of reducible! when forced to create a row
Defaults to `map-row-builder`; add examples of `assoc`, 
`datafiable-row`.
2019-04-18 00:36:22 -07:00
Sean Corfield
b82f349717 Add example row builder for record
Note: this makes a lot of assumptions about the shape of the result 
set's rows!
2019-04-18 00:28:55 -07:00
Sean Corfield
50fbc5f8f1 Respect :gen-fn in execute-one 2019-04-18 00:28:23 -07:00
Sean Corfield
5019995feb Move SQL sugar functions to next.jdbc.sql
Make SQL string builder functions private.
2019-04-17 23:56:44 -07:00
Sean Corfield
a17054b61a Improve protocol documentation 2019-04-17 23:43:32 -07:00
Sean Corfield
b5eb5b880e Consolidate the three use cases
* Remove `execute!` and `execute-one!` from `result-set`.
* Add `-execute-all` and `-execute-one` to the `Executable` protocol 
instead.
* Remove `:row-fn` support.
* Allow a `PreparedStatement` to be `Connectable` so it can be used with 
`datafy`/`nav`.
* Rewrite `RowBuilder` protocol and add `ResultSetBuilder` protocol; add 
`as-arrays` as a builder.
2019-04-17 23:34:31 -07:00
Sean Corfield
788015909f First cut at RowBuilder
Temporarily disables as-arrays
2019-04-10 23:59:19 -07:00
Sean Corfield
eefea54358 Merge branch 'master' of github.com:seancorfield/next-jdbc 2019-04-10 21:46:46 -07:00
Sean Corfield
d2f0afa973 Fix #9 by combining ->factory and create again 2019-04-10 21:46:38 -07:00
Sean Corfield
8eeee78ed9
Update CONTRIBUTING.md 2019-04-06 13:08:50 -07:00
Sean Corfield
e5e580846f Document usage, intended use cases, and differences
Expand the README to provide more guidance and motivation.
2019-04-04 20:26:18 -07:00
Sean Corfield
9abf9f6380 Fix update count key to :next.jdbc/update-count 2019-04-04 20:25:20 -07:00
Sean Corfield
10929796ff Merge branch 'master' of github.com:seancorfield/next-jdbc 2019-04-04 19:31:28 -07:00