Commit graph

80 commits

Author SHA1 Message Date
Sean Corfield
7e13e719ce Fixes #161 by adding batch execution for connectable/SQL 2021-03-15 15:16:59 -07:00
Sean Corfield
c7881fe078 Prep for 1.1.643; switch to com.github.seancorfield 2021-03-06 15:15:41 -08:00
Sean Corfield
a1e51bf007 Fix #157 by adding next.jdbc/execute-batch!
This breaks the circular dependency completely.
`next.jdbc.prepare/execute-batch!` is deprecated.
2021-01-30 16:36:05 -08:00
Sean Corfield
dc240652fc It's 2021 2021-01-29 16:13:05 -08:00
Sean Corfield
5737495c4e Fixes #144; prep for 1.1.613 release 2020-11-05 12:47:21 -08:00
Sean Corfield
67eadf1bbb Merge branch 'develop' of github.com:seancorfield/next-jdbc into develop 2020-09-21 11:19:29 -07:00
Sean Corfield
c2ebaa36fd Addresses #140 by adding duckdb
Next I'll see what test changes are needed to make this fully supported.
2020-09-21 11:19:13 -07:00
Sean Corfield
0142b25dc6 Add note to with-options docstring about usage in Getting Started section 2020-09-20 12:17:21 -07:00
Sean Corfield
049f34e311 Fixes #137 by adding user/password arities to get-connection
Also calls `.getConnection` with user/password under the hood if those 
are present in the `opts` hash map.
2020-07-31 11:56:22 -07:00
Sean Corfield
931023de09 Address #121 by adding conditional builders/options for CSK 2020-07-08 11:52:22 -07:00
Sean Corfield
c09d72f187 Fixes #116 by documenting multiple result sets 2020-06-27 16:10:23 -07:00
Sean Corfield
68d8f98d26 Document folding over plan #125 2020-06-26 21:31:43 -07:00
Sean Corfield
b9b77bb40f Fixes #122 by adding next.jdbc/with-options 2020-06-22 16:38:13 -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
eb722b502e Fixes #93 by improving documentation about datafiable-row 2020-02-28 10:54:28 -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
e404c47d83 Fixes #74 by mollifying Eastwood 2019-11-13 10:40:59 -08: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
6c42d7ce67 Fixes #66 by adding support for :jdbcUrl in db-spec hash map 2019-09-27 13:06:45 -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
8e4ef3033c Note :none as possible value for :host 2019-07-15 13:51:23 -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
bb753f363b Fixes #45 by adding TimesTen driver suport 2019-07-10 19:32:24 -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
b4331146ff Stop Joker flagging some ns as unused
These are pulled into `next.jdbc` to extend/implement protocols only.
2019-06-07 17:39:58 -07:00
jet
df1c38c03f Correct documentation for transact and with-transaction
Previously both functions were documented as taking a `Connectable`
object. This amends the documentation as well as the fn signature to
take a `Transactable` object.
2019-06-02 12:07:01 -04:00
Sean Corfield
382d1bef10 Fix #24 by adding type hints 2019-05-29 13:51:11 -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
ee2fcc47ab Fixes #17 by changing sql-string to sql-params 2019-04-26 10:34:26 -07:00
Sean Corfield
13ad917864 Fix #15 by passing SQL string to builders
Adds internal `:next.jdbc/sql-string` option.
2019-04-24 10:07:52 -07:00
Sean Corfield
2badd9f835 Big docstring cleanup 2019-04-21 16:13:52 -07:00
Sean Corfield
6f637b4e36 Start documenting differences/migration more seriously 2019-04-21 00:48:16 -07:00
Sean Corfield
8c508b8416 Documentation cleanup 2019-04-18 13:19:59 -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
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
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
d2f0afa973 Fix #9 by combining ->factory and create again 2019-04-10 21:46:38 -07:00
Sean Corfield
e85f627a00 Address #2 by solidifying row function API
Low-level `execute!` requires row function to be passed. High-level API 
allows row function, else `datafiable-row`. Syntactic sugar still uses 
`:row-fn`.
2019-04-02 00:41:39 -07:00
Sean Corfield
c2c9bcbba4 Address #1 by solidifying syntactic sugar functions
Cleans up how options are handled. Adds `query` alias for `execute!`, 
clarifiies the syntactic sugar nature of the additional functions.
2019-04-01 23:57:12 -07:00
Sean Corfield
a76189d9c8 Fix #4 by adding transact
`with-transaction` now delegates to `transact` which in turn delegates 
to `p/-transact`.
2019-04-01 23:43:10 -07:00
Sean Corfield
81be787316 Improve docstrings throughout 2019-04-01 21:31:38 -07:00
Sean Corfield
6e08557d92 Add docstrings to everything 2019-03-31 23:17:12 -07:00
Sean Corfield
8646472e79 Flesh out more SQL generators
Add high-level insert!, insert-multi!, update!, delete!

Add more examples to tests.
2019-03-31 19:30:01 -07:00
Sean Corfield
561ccfc621 Add simple SQL generators 2019-03-31 18:22:04 -07:00
Sean Corfield
38017d720d Move examples to tests for now 2019-03-31 17:29:40 -07:00
Sean Corfield
ac95379bce Reorganize into multiple namespaces 2019-03-31 16:54:34 -07:00