mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
* Start moving out URI from ConnectionContext Create connections with an initial context. Database will set itself as context after connection has been created * Migrate to simpler/decoupled factory in driver This allows more freedom on how the connection is created. It will no longer need to have an explicit reference to the connection URI * Introduce DB::Connection::Options Move prepared_statements out from ConnectionContext * Delegate options parsing to driver DRY parsing connection options for database * Introduce DB::Pool::Options * Rename Driver#connection_pool_options to pool_options * Drop driver getter from database * Drop uri getter from database * Add public Database#initialize method * Drop :nodoc: Database#initialize * Pass spec helper explicitly (to access methods within each spec) * Update docs * Update src/db/pool.cr Co-authored-by: Beta Ziliani <beta@manas.tech> * Use ConnectionBuilder instead of procs * Fix inferred type when there is a single concrete connection type * Update src/db/driver.cr Co-authored-by: Beta Ziliani <beta@manas.tech> --------- Co-authored-by: Beta Ziliani <beta@manas.tech> |
||
---|---|---|
.. | ||
support | ||
custom_drivers_types_spec.cr | ||
database_spec.cr | ||
db_spec.cr | ||
disposable_spec.cr | ||
dummy_driver.cr | ||
dummy_driver_spec.cr | ||
http_client_pool_spec.cr | ||
mapping_spec.cr | ||
pool_spec.cr | ||
result_set_spec.cr | ||
save_point_transaction_spec.cr | ||
serializable_spec.cr | ||
spec_helper.cr | ||
statement_spec.cr | ||
transaction_spec.cr |