Sean Corfield
e404c47d83
Fixes #74 by mollifying Eastwood
2019-11-13 10:40:59 -08:00
Sean Corfield
4b01f31578
Move middleware experiment to tests
...
Until I figure out what to do about this, I don't want it accidentally
included in a release!
2019-11-13 09:38:30 -08:00
Sean Corfield
e9b7ee80ab
Document current state of experiment
...
and my unhappiness with it!
2019-11-10 17:53:23 -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
b5048cca85
Improve migration docs
...
`next.jdbc.connection` namespace docstring now mentions `dbtypes` and
`->pool`. **Primary API** in the migration doc now explicitly recommends
using a datasource for piecemeal migration.
2019-11-08 10:20:28 -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
8c75e3a546
Addresses #69 by expanding docs for execute-one!
...
Updates include adding notes on `execute!`, `execute-one!`, and `plan`
in the README, as well as expanding the docstrings for those functions.
2019-10-11 11:26:41 -07:00
Sean Corfield
04237c89ea
Add optional maps adapter
2019-10-04 13:52:23 -07:00
Sean Corfield
58bdb53f34
Fixes #67 by updating specs for :jdbcUrl
2019-09-27 22:22:23 -07:00
Sean Corfield
6c42d7ce67
Fixes #66 by adding support for :jdbcUrl in db-spec hash map
2019-09-27 13:06:45 -07:00
Sean Corfield
e03de7828a
Document PR #64
...
Add to change log, Getting Started, and ns docstring for
`next.jdbc.specs`. Also note docs in GitHub are for **master** now.
2019-09-14 13:32:34 -07:00
Gerred Dillon
740e1abaaf
Add unstrument function to specs
...
Signed-off-by: Gerred Dillon <hello@gerred.org>
2019-09-14 15:51:46 -04: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
cae84736a3
Typo in docstring
2019-09-06 01:52:18 -07:00
Sean Corfield
1b93d3a04b
Improve result set adapter docstrings
2019-08-24 11:25:19 -07:00
Sean Corfield
f95467a34c
Improve docs for insert-multi! / execute-batch!
...
Call out the caveats more clearly. Note that Oracle doesn't support the
`insert-multi!` syntax(!).
2019-08-22 13:09:07 -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
5424353f2d
Clarify position on default options
...
I.e., write your own wrapper if you want to globally override options.
2019-07-24 22:49:24 -07:00
Sean Corfield
b3f462e90b
Fixes #48 by documenting connection/->pool
2019-07-18 12:12:09 -07:00
Sean Corfield
b1b2f13ebb
Rename jdbc-url to ->pool
2019-07-18 11:01:55 -07:00
Sean Corfield
60c1e6660f
Support connection pooling more easily
2019-07-17 23:50:56 -07:00
Sean Corfield
5d898ef27a
Formatting tweak in ns docstring
2019-07-15 14:09:48 -07:00
Sean Corfield
3ffeb5dda9
Improve docstring
2019-07-15 14:01:42 -07:00
Sean Corfield
8e4ef3033c
Note :none as possible value for :host
2019-07-15 13:51:23 -07:00
Sean Corfield
8883167805
Finish off #47
...
Make `dbtypes` public again (oops!). Note that it _won't_ contain defaults (if folks feel they need them, they can easily be added). Use `:host :none` in `dbtypes` to indicate a local database (no `:host`/`:port` segment) which is more consistent with how users would specify a new database.
Reduce the number of special cases in the JDBC URL assembly, now that `:host :none` from `dbtypes` can drive that.
2019-07-15 11:15:26 -07:00
Sean Corfield
816fc7ce4b
Fix #47 by refactoring how db-specs are built
2019-07-14 21:46:59 -07:00
Sean Corfield
44dba4f29c
Fixes #46 by allowing :host :none
...
Also adds `:dbname-separator` and `:host-prefix` for fine-grained
control over the JDBC URL format.
2019-07-11 15:43:49 -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
2131136c0d
Another tweak to TimesTen direct
2019-07-10 20:00:40 -07:00
Sean Corfield
2c524614ce
TimesTen client needs special dbname separator too
2019-07-10 19:47:19 -07:00
Sean Corfield
bb753f363b
Fixes #45 by adding TimesTen driver suport
2019-07-10 19:32:24 -07:00
Sean Corfield
3c32bfe13d
Fixes #42 by adding specs for next.jdbc.prepare API functions
2019-07-10 12:11:26 -07:00
Sean Corfield
79d6f5ef29
Improve documentation around :dbtype
...
Expose `next.jdbc.connection/dbtypes` which is a table of all known
`:dbtype` values and their driver class names, ports, etc.
2019-07-10 11:54:13 -07:00
Sean Corfield
29d46439e6
Fixes #40 by adding next.jdbc.prepare/execute-batch!
2019-07-09 16:00:10 -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
58aeff56f7
Updated insert-multi! docstring
...
Removed caveat about batching (doesn't apply) but added caveat about
size/parameter limits.
2019-07-08 17:21:28 -07:00
Sean Corfield
dcb632d7cf
Make it clear that next.jdbc.prepare/create should not be called
2019-07-08 12:40:19 -07:00
Sean Corfield
ba4dc837e1
Fixes #33 by improving specs
2019-07-02 18:50:25 -07:00
Sean Corfield
1cec0a2643
Fixes #37 ; Fixes #36
...
* Fix `with-transaction` spec and how it invokes `transact` when no
options map is provided.
* Adds type hint to `with-transaction`.
* Document manual rollback of transactions.
2019-07-02 16:45:48 -07:00
Sean Corfield
85eba1bb2f
Fixes #35 by documenting the DB-specific insert multi options
2019-06-28 19:18:26 -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