Sean Corfield
4de1d445ec
Address #124 by fixing bug in builder; adding tests
2020-06-24 22:25:28 -07:00
Sean Corfield
26b8fa1600
Fixes #124 by supporting pagination
...
Support `:all` in `find-by-keys`. Document all these options. Update the
specs.
2020-06-24 19:27:32 -07:00
Sean Corfield
5b15215f83
Address #124 by adding support for top/limit/offset/fetch
...
Also allows find where clause to be nil/empty (instead of generating
invalid SQL).
2020-06-24 18:55:08 -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
2a8571bb14
Merge branch 'develop' into multi-rs
2020-06-24 12:01:43 -07:00
Sean Corfield
3464fca0a2
Merge branch 'develop' into nested-tx
2020-06-24 11:59:36 -07:00
Sean Corfield
03792303bc
Fixes #123 by adding type-hinting functions
2020-06-24 11:23:40 -07:00
Sean Corfield
7f702c96fe
Merge branch 'develop' into multi-rs
2020-06-22 23:25:12 -07:00
Sean Corfield
c7b4bf06c2
Merge branch 'develop' into nested-tx
2020-06-22 23:24:09 -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
aed1938e89
Merge branch 'develop' into multi-rs
2020-06-22 17:06:01 -07:00
Sean Corfield
7a06e9cca8
Merge develop -> nested-tx
2020-06-22 17:00:01 -07:00
Sean Corfield
b9b77bb40f
Fixes #122 by adding next.jdbc/with-options
2020-06-22 16:38:13 -07:00
Sean Corfield
15ddd15fe9
Remove {} from deps example
2020-06-18 19:14:10 -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
2d727cc1ac
Merge branch 'master' into nested-tx
2020-06-07 10:03:27 -07:00
Sean Corfield
4045e18f3e
Fix potential reflection warnings from use of next.jdbc.prepare/statement
2020-06-07 10:02:20 -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
7c0cee09bf
Issue #117 sketch of dynamic nested transaction behavior
2020-06-06 16:57:25 -07:00
Sean Corfield
cc3988e773
Document all the new datafy/nav stuff
2020-05-31 21:32:03 -07:00
Sean Corfield
53c3b5f48e
Bump java.data to 1.0.78 and surface configurable exception handling
2020-05-31 17:12:38 -07:00
Sean Corfield
ace912c867
Depends on local clojure.java.data
2020-05-31 14:13:55 -07:00
Sean Corfield
ab588070e6
Datafy parameter metadata
2020-05-31 12:23:31 -07:00
Sean Corfield
4be2b7130b
Extend datafication and simplify
...
Handles weird SQLite edge case; datafies Statement and ResultSet;
improves exception handling in `safe-bean` (but we really need a better
bean maker).
2020-05-31 03:02:25 -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
66fdba4be9
Provide built-in support for Stuart Sierra's Component library
...
Needs documenting!
2020-04-28 17:34:25 -07:00
Sean Corfield
905f7c3e12
Addresses #106 by adding experimental locking in this case
2020-04-27 17:52:11 -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
315d629202
Fixes #102 by supporting keywords in :return-keys
2020-03-27 16:06:38 -07:00
Sean Corfield
f0c4159bff
Support loginTimeout on reified DataSource
2020-03-20 13:51:50 -07:00
Sean Corfield
9947cf9226
Fixes #101 by tightening ::jdbcUrl spec
2020-03-17 10:28:40 -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
Vincent Cantin
6f35f84a0e
Add default data-source settings for MariaDB.
2020-03-17 00:22:13 +08:00
Sean Corfield
a1ef07d1ad
Update README to drive people to cljdoc.org for documentation
2020-03-04 15:06:43 -08:00
Sean Corfield
9755992025
Add read-as-* functions to date/time support
2020-03-02 13:44:00 -08:00
Sean Corfield
051bc9bd9c
Fixes #95 by adding notes about/links to next.jdbc.date-time
2020-03-01 10:11:18 -08: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
ee4fb72cef
Addresses #91 by removing superfluous asserts in optional rs
2020-02-26 09:30:05 -08:00
Sean Corfield
cba3ac4cec
Addresses #89 , #90 , #91
2020-02-26 08:55:32 -08:00
Sean Corfield
7603e257e9
Link get-datasource docstring to dbtypes in next.jdbc.connection
2020-02-10 15:11:13 -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
205abe2faa
Fixes #81 by splitting next.jdbc.sql
2019-12-11 16:42:28 -08:00
Sean Corfield
b6014e824a
Fixes #80 by carefully avoiding the implicit commit when rollback fails
2019-12-11 16:03:41 -08:00
Sean Corfield
32e9f338d5
Addresses #76 by not converting SQL Date/Timestamp types
2019-11-26 11:14:41 -08:00
Sean Corfield
8fbd0837ab
Add ^:no-doc to next.jdbc.transaction
...
In preparation for possible changes to cljdoc (so that it respects that
metadata).
2019-11-15 13:21:00 -08:00
Sean Corfield
7ad1b720e9
Fix typo in docstring
...
Thanks to @holyjak for spotting this!
2019-11-15 10:54:04 -08:00
Sean Corfield
7b6aa69e31
Fixes #73 by adding optional namespace to extend SettableParameter
2019-11-14 17:10:49 -08:00
Sean Corfield
d561a7108e
Fixes #75 by adding java.sql.Statement support
2019-11-14 16:15:52 -08:00
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