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
Sean Corfield
4d41faa8cd
Restore :identifiers functionality
2019-03-30 23:31:35 -07:00
Sean Corfield
2cb3c20122
Renaming/cleanup
2019-03-30 23:13:01 -07:00
Sean Corfield
451a5fbd3b
Handle generated keys
2019-03-30 23:12:37 -07:00
Sean Corfield
4741db1453
Fix column name when table name not known
2019-03-30 23:12:04 -07:00
Sean Corfield
69324ccbe6
in-transaction -> with-transaction
2019-03-30 23:11:37 -07:00
Sean Corfield
a44f59a468
Clean up Preparable; add Transactable
2019-03-30 20:36:53 -07:00
Sean Corfield
93eb286bd0
Optimize by removing destructuring
2019-01-26 02:05:25 -08:00
Sean Corfield
19ae37b3fe
Add options back to get-connection
...
So we can do read-only, non-auto-commit connections
2019-01-26 01:59:37 -08:00
Sean Corfield
8d9289bd14
Optimizations
...
Strip options from datasource.
Implement full prepared statement.
Lift options handling.
2019-01-26 01:35:31 -08:00
Sean Corfield
a1d9d869d6
Add raw Java benchmark
2019-01-26 00:27:15 -08:00
Sean Corfield
c1e8b351a2
Drop options; add query-one/command! conveniences
2019-01-26 00:21:03 -08:00
Sean Corfield
781a6d19e1
Perform base reduce on update counts
2019-01-10 23:25:29 -08:00
Sean Corfield
eaffa2fd74
Dispatch execute! on a protocol
...
Improves performance. Handles the connect-with-connection problem.
Clean up formatting.
2019-01-10 19:23:35 -08:00