https://github.com/socketry/db
Event-driven database drivers for streaming queries.
https://github.com/socketry/db
database
Last synced: 4 months ago
JSON representation
Event-driven database drivers for streaming queries.
- Host: GitHub
- URL: https://github.com/socketry/db
- Owner: socketry
- License: mit
- Created: 2020-03-25T11:48:32.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-21T23:01:03.000Z (over 1 year ago)
- Last Synced: 2025-06-22T06:54:18.059Z (7 months ago)
- Topics: database
- Language: Ruby
- Homepage:
- Size: 464 KB
- Stars: 59
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# DB
Provides event-driven asynchronous drivers for various database adaptors, including [Postgres](https://github.com/socketry/db-postgres) and [MariaDB/MySQL](https://github.com/socketry/db-mariadb).
[](https://github.com/socketry/db/actions?workflow=Test)
## Features
- Event driven I/O for streaming queries and results.
- Standard interface for multiple database adapters.
## Usage
Please see the [project documentation](https://socketry.github.io/db/) for more details.
- [Getting Started](https://socketry.github.io/db/guides/getting-started/index) - This guide explains how to use `db` for database queries.
- [Executing Queries](https://socketry.github.io/db/guides/executing-queries/index) - This guide explains how to escape and execute queries.
- [Example Queries](https://socketry.github.io/db/guides/example-queries/index) - This guide shows a variety of example queries using the DB gem.
- [Data Types](https://socketry.github.io/db/guides/datatypes/index) - This guide explains about SQL data types, and how they are used by the DB gem.
## See Also
- [db-postgres](https://github.com/socketry/db-postgres) - Postgres adapter for the DB gem.
- [db-mariadb](https://github.com/socketry/db-mariadb) - MariaDB/MySQL adapter for the DB gem.
- [db-model](https://github.com/socketry/db-model) - A simple object relational mapper (ORM) for the DB gem.
- [db-migrate](https://github.com/socketry/db-migrate) - Database migration tooling for the DB gem.
- [db-active\_record](https://github.com/socketry/db-active_record) - An ActiveRecord adapter for the DB gem.
## Contributing
We welcome contributions to this project.
1. Fork it.
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 origin my-new-feature`).
5. Create new Pull Request.
### Developer Certificate of Origin
In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
### Community Guidelines
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.