Sean Corfield
c36858ca95
Merge branch 'develop' into multi-rs
2020-06-26 22:39:44 -07:00
Sean Corfield
77ebb31026
Interleave combine with batch reductions #125
2020-06-26 22:21:49 -07:00
Sean Corfield
efa37ad84f
Use map for some interleaving of combine and join #125
2020-06-26 21:31:28 -07:00
Sean Corfield
469eb0959a
Switch reduce to r/reduce in folding logic #125
2020-06-26 19:32:48 -07:00
Sean Corfield
53ee1c5367
Complete CollFold implementation #125
2020-06-26 19:03:57 -07:00
Sean Corfield
0eb183a0a0
Prototype of #125 -- foldable result sets!
2020-06-26 17:38:58 -07:00
Sean Corfield
9d6e7ab145
Remove unused rsn
...
Since I changed the default multi-result-set format, the result set
number is no longer needed.
2020-06-24 12:25:25 -07:00
Sean Corfield
a56c18d531
Clean up stmt-sql and :return-keys handling
2020-06-07 12:35:03 -07:00
Sean Corfield
067919a296
Roll multi-rs across execute-all for all types
2020-06-07 12:13:32 -07:00
Sean Corfield
92f7923a2a
Merge branch 'master' into multi-rs
...
# Conflicts:
# test/next/jdbc/test_fixtures.clj
2020-06-07 10:05:33 -07:00
Sean Corfield
35fc00d4b3
Fixes #119 by improving docstrings
2020-06-07 09:39:04 -07:00
Sean Corfield
326977dddc
:multi-rs truthy defaults to sequnce; :delimited available #116
2020-06-06 17:01:13 -07:00
Sean Corfield
0a27e51f37
First steps to multiple result sets #116
2020-06-06 17:00:52 -07:00
Sean Corfield
332cf4a3ed
Fix protocols vs namespace for datafy
2020-05-31 00:19:48 -07:00
Sean Corfield
6a6e42e9af
Expand datafy/nav and metadata support (work in progress)
2020-05-30 23:44:18 -07:00
Sean Corfield
91b1b25475
Fixes #110 by documenting the solution
...
In addition to adding `row-number` and `column-names`, this also adds
support for associative access by numeric key and indexed access.
2020-05-23 00:01:39 -07:00
Sean Corfield
b0b9e53352
Addresses #110 by adding tests around this scenario
2020-05-22 20:16:40 -07:00
Sean Corfield
860298943c
Addresses #110 by adding row-number, column-names
...
This is a quick sketch that doesn't break the existing tests.
Documentation and tests coming soon!
2020-05-22 17:11:36 -07:00
Sean Corfield
8e4dbd7bd9
Some clj-kondo cleanup
2020-05-21 18:39:23 -07:00
Sean Corfield
2fd27d18bd
Improve documentation around next.jdbc.date-time
...
Expands the documentation around each place it is referenced. Expands
the namespace docstring. Adds a mention of it to the result-set
namespace docstring.
2020-04-07 14:29:37 -07:00
Sean Corfield
eb722b502e
Fixes #93 by improving documentation about datafiable-row
2020-02-28 10:54:28 -08:00
Sean Corfield
126ac58c34
Fixes #88 by calling 1-arity keyword
...
Also supports calling `:qualifier-fn` on an empty table name.
2020-02-26 11:48:42 -08:00
Sean Corfield
cba3ac4cec
Addresses #89 , #90 , #91
2020-02-26 08:55:32 -08:00
Sean Corfield
425d1c367c
Extend copyright to 2020
2020-01-01 13:13:41 -08:00
Sean Corfield
a2ba8ff780
Fixes #82 and adds next.jdbc.prepare/statement
2019-12-20 15:45:22 -08:00
Sean Corfield
d561a7108e
Fixes #75 by adding java.sql.Statement support
2019-11-14 16:15:52 -08:00
Sean Corfield
a57011a998
Recast the adapter/processors as a middleware
...
Still not happy with this but it seems more "holistic".
2019-11-09 22:59:34 -08:00
Sean Corfield
b2b7696973
Sketch of side-effecting builder-adapter
2019-11-08 12:47:54 -08:00
Sean Corfield
ea0f1868b3
More documentation for #70
...
Adds CLOB & BLOB SQL Types to Tips & Tricks section with example of
`ReadableColumn` extension and reference to helper/column reader in
`next.jdbc.result-set`.
2019-10-17 18:02:37 -07:00
Sean Corfield
61083eba69
Address #70 by adding/documenting CLOB column reader example
2019-10-14 11:13:36 -07:00
Sean Corfield
7a110f15ce
Address #60 by adding two new schema formats
...
Still considering what #61 might need.
2019-09-08 17:05:07 -07:00
Sean Corfield
1b93d3a04b
Improve result set adapter docstrings
2019-08-24 11:25:19 -07:00
Sean Corfield
9a76e4c25a
Add as-arrays-adapter
2019-08-21 14:47:55 -07:00
Sean Corfield
fed305dd2b
Add and document as-maps-adapter
2019-08-21 14:19:32 -07:00
Sean Corfield
87e44ae6a6
Fixes #52 by using US-locale lower-case function
2019-08-08 17:01:23 -07:00
Sean Corfield
e0b0c214fd
Improve printability as part of #51
...
Since `str` may be able to realize a row and render it as a string, attempts to print a row use this route to circumvent `print-sequential` failing due to lazy evaluation.
2019-08-02 12:42:00 -07:00
Sean Corfield
0fd8bf1a88
Fixes #51 by implementing IPersistentMap in full
...
* `dissoc`, `cons`, `=` -- both realize a full row.
* `count`, `empty` -- do not realize rows, `empty` doesn't use the builder at all.
* `str` -- attempts to realize a row (else returns the same "helpful" string as before).
2019-08-02 12:24:04 -07:00
Sean Corfield
7184ef996c
Fixes #41 ; Addresses #40 ; Expand prepared statement documentation
...
* Combine adjacent `with-open` calls.
* Show how `set-parameters` is used.
* Add a section on batched parameters, with their caveats, and how to
use them.
2019-07-08 20:48:56 -07:00
Sean Corfield
e1b42b1804
Address #31 by improving string representation of reified objects
...
At least this should give a hint as to what you did wrong...
2019-06-11 16:47:58 -07:00
Sean Corfield
22a3f2bb5f
Fix #26 by adding datafiable-result-set
...
This makes handling metadata result sets much easier.
2019-06-08 15:09:42 -07:00
Sean Corfield
b64fbf35ff
Fix #30 by adding modified builders
...
Adds `:label-fn` and `:qualifier-fn` options, and `as-modified-*`
builder variants.
2019-06-04 18:01:19 -07:00
Sean Corfield
a32c5b9e66
Address #16 by renaming reducible! to plan for Beta 1
2019-05-22 16:22:14 -07:00
Sean Corfield
eb981d5726
Another pass over documentation and docstrings
2019-04-26 22:42:27 -07:00
Sean Corfield
cf75268087
Rename :gen-fn to :builder-fn
2019-04-24 14:22:35 -07:00
Sean Corfield
2c018654d3
Alpha 9; fixes #14 ; improves protocol docstrings
...
* Move documentation from `ns` into `defprotocol` and the method
declarations.
* Indicate which protocols may be extended via metadata
(`SettableParameter` and `Sourceable`).
2019-04-22 17:41:31 -07:00
Sean Corfield
2badd9f835
Big docstring cleanup
2019-04-21 16:13:52 -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
3588d526fa
execute-all should return a vector even for update counts
2019-04-19 22:50:10 -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