⚠️ indicates a breaking change.
[Unreleased]
Added
Changed
Removed
[0.5.0] - 2024-08-06
Changed
- Dependency maintenance:
- Updated
rusqlite
to version0.32.1
. - Updated
r2d2_sqlite
to0.25.0
(because it must follow rusqlite's version).
- Updated
[0.4.0] - 2024-02-20
Changed
- Dependency maintenance:
- Updated
rusqlite
to version0.31.0
, which removes thewinsqlite
feature. - Updated
r2d2_sqlite
to0.24.0
(because it must follow rusqlite's version).
- Updated
[0.3.0] - 2024-02-10
Added
- Re-export
r2d2
. - Add
ConnPool::size()
for getting number of connections in connection pool. - Add
ConnPool::freelist_count()
for getting number of unused pages in the database. WrConn::incremental_vacuum()
added.- Add an
utils
sudmodule for collecting SQL command wrappers. - Add several new
ConnPool
wrappers for running closures with either read-only or read/write connections.
Changed
tpool
feature is no longer the default.- Redesigned thread pooling to support sharing a thread pool with others.
Removed
- Removed support for the thread pool in the
ConnPool
and opt for providing functions/methods that take in a reference to athreadpool::ThreadPool
instead.
[0.2.0] - 2024-01-28
Added
Builder::reg_scalar_fn()
was added to register callback functions that are used to register SQL functions. Each callback is wrapped to mark if the callback should be called for read-only connections, the read/write connection or both.
Changed
ro_run_result()
's closure no longer takes inSetCtx
and returnsResult<T, E>
. sqlsrv will automatically set/fail the sctx, depending on the closure's return value.rw_run_result()
':- Receives a
&mut WrConn
rather than a&mut Connection
. - Closure no longer takes in
SetCtx
and its return type isResult<T, E>
rather thanOption<usize>
. - Adding dirt should not be done with
WrConn::add_dirt()
(instead of return value). - sqlsrv will automatically set/fail the sctx, depending on the closure's
Result
.
- Receives a
Removed
Builder::register_ro_functions()
andBuilder::register_rw_functions()
have been removed. UseBuilder::reg_scalar_fn()
instead.
[0.1.1] - 2024-01-24
Added
- Add ability to register callback functions for registering SQL functions for both read-only and read/write connections.
[0.1.0] - 2024-01-21
Changed
- Make the internal thread pool optional. It is disabled by default.
- Put thread pool features behind a ferature gate (
tpool
), which is enabled by default.
[0.0.4] - 2024-01-19
Changed
- Allow
dirt
to be returned from read/write thread wrappers.
[0.0.3] - 2024-01-18
Added
- Re-export
rawhook::Action
from crate root.
[0.0.2] - 2024-01-14
Added
- Re-export rusqlite.
Changed
- Pass mutable
Connection
to schema handler'sinit()
andupgrade()
.
[0.0.1] - 2024-01-09
Initial release