Skip to content

Commit e338c44

Browse files
committed
v0.2.0
1 parent e0c00ec commit e338c44

5 files changed

Lines changed: 306 additions & 186 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22

33
# Unified error API for node.js SQL DB drivers
44

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

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

1313
# Contributions and suggestions are most welcome
1414

15-
Currently a very basic set of errors is handled. If you have an idea for an error we should
16-
handle, please open an issue and we'll see what we can do to add it.
15+
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.
1716

1817
<br>
1918
<br>

docker-compose.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@ services:
88
ports:
99
- "1433:1433"
1010
mysql:
11-
image: "mysql:8.0.15"
12-
environment:
11+
image: "mysql:5"
12+
environment:
1313
- MYSQL_DATABASE=db_errors_test
1414
- MYSQL_USER=db_errors
15-
- MYSQL_PASSWORD=password
15+
- MYSQL_ROOT_PASSWORD=root
1616
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
1717
ports:
1818
- "3306:3306"
1919
postgres:
20-
image: "postgres:11.2"
21-
environment:
20+
image: "postgres:10"
21+
environment:
2222
- POSTGRES_DB=db_errors_test
2323
- POSTGRES_USER=db_errors
24-
- POSTGRES_PASSWORD=password
2524
ports:
26-
- "3306:3306"
25+
- "5432:5432"

0 commit comments

Comments
 (0)