{"repo":"crystal-lang/crystal-db","free":true,"listed":false,"github":"https://github.com/crystal-lang/crystal-db","clone":"git clone https://github.com/crystal-lang/crystal-db.git","description":"Common db api for crystal","language":"Crystal","stars":312,"topics":["crystal","database"],"license":"MIT","category":"databases-storage","readme_excerpt":"crystal-db Common db api for crystal. You will need to have a specific driver to access a database. SQLite MySQL PostgreSQL ODBC Cassandra DuckDB Microsoft SQL Server Installation If you are creating a shard that will work with any driver, then add crystal-db as a dependency in shard.yml : If you are creating an application that will work with some specific driver(s), then add them in shard.yml : crystal-db itself will be a nested dependency if drivers are included. Note: Multiple drivers can be included in the same application. Documentation Latest API Crystal book Usage This shard only provides an abstract database API. In order to use it, a specific driver for the intended database has to be required as well: The following example uses SQLite where ? indicates the arguments. If PostgreSQL is used $1 , $2 , etc. should be used. crystal-db does not interpret the statements. Roadmap Issues not yet addressed: - [x] Support non prepared statements. #25 - [x] Time data type. (implementation details depends on actual drivers) - [x] Data type extensibility. Allow each driver to extend the data types allowed. - [x] Transactions & nested transactions. #27 - [x] Connection pool. - [x] Logging - [ ] Direct access to IO to avoid memory allocation for blobs. Contributing 1. Fork it ( https://github.com/crystal-lang/crystal-db/fork ) 2. Create your feature branch (git checkout -b my-new-feature) 3. Commit your changes (git commit -am 'Add some feature') 4. Push to the branch (git push or","default_branch":null,"files":null,"tree":[],"storefront":"/r/crystal-lang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/crystal-lang/crystal-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}