Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koskimas committed Apr 4, 2019
1 parent e0c00ec commit e338c44
Show file tree
Hide file tree
Showing 5 changed files with 306 additions and 186 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

# Unified error API for node.js SQL DB drivers

This project is an attempt to create a unified API for node.js SQL DB driver errors. Each driver
This project is an attempt to create a unified API for node.js SQL DB driver errors. Each driver
throws their own kind of errors and libraries like knex, Bookshelf and objection.js simply
pass these errors through. It's usually very difficult to reason with these errors. This
library wraps those errors to error classes that are the same for all drivers. The wrapped
error classes also expose useful information about the errors.

__NOTE__: Only MySQL, Sqlite3 and PostgreSQL are officially supported (tested).
__NOTE__: Only MySQL, Sqlite3, MSSQL and PostgreSQL are officially supported (tested).

# Contributions and suggestions are most welcome

Currently a very basic set of errors is handled. If you have an idea for an error we should
handle, please open an issue and we'll see what we can do to add it.
If you have an idea for an error we should handle, please open an issue and we'll see what we can do to add it.

<br>
<br>
Expand Down
13 changes: 6 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ services:
ports:
- "1433:1433"
mysql:
image: "mysql:8.0.15"
environment:
image: "mysql:5"
environment:
- MYSQL_DATABASE=db_errors_test
- MYSQL_USER=db_errors
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=root
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
ports:
- "3306:3306"
postgres:
image: "postgres:11.2"
environment:
image: "postgres:10"
environment:
- POSTGRES_DB=db_errors_test
- POSTGRES_USER=db_errors
- POSTGRES_PASSWORD=password
ports:
- "3306:3306"
- "5432:5432"
Loading

0 comments on commit e338c44

Please sign in to comment.