You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| dsn |`DSN`| Database connection string | Required if not in demo mode |
324
+
| transport |`TRANSPORT`| Transport mode: `stdio` or `http`|`stdio`|
325
325
| port |`PORT`| HTTP server port (only applicable when using `--transport=http`) |`8080`|
326
-
| readonly |`READONLY`| Restrict SQL execution to read-only operations |`false`|
327
-
| demo | N/A | Run in demo mode with sample employee database |`false`|
326
+
| readonly |`READONLY`| Restrict SQL execution to read-only operations |`false`|
327
+
| demo | N/A | Run in demo mode with sample employee database |`false`|
328
328
329
329
The demo mode uses an in-memory SQLite database loaded with the [sample employee database](https://github.com/bytebase/dbhub/tree/main/resources/employee-sqlite) that includes tables for employees, departments, titles, salaries, department employees, and department managers. The sample database includes SQL scripts for table creation, data loading, and testing.
330
330
@@ -350,10 +350,85 @@ The demo mode uses an in-memory SQLite database loaded with the [sample employee
350
350
351
351
### Testing
352
352
353
-
The project uses Vitest for comprehensive unit testing:
353
+
The project uses Vitest for comprehensive unit and integration testing:
DBHub includes comprehensive integration tests for all supported database connectors using [Testcontainers](https://testcontainers.com/). These tests run against real database instances in Docker containers, ensuring full compatibility and feature coverage.
362
+
363
+
##### Prerequisites
364
+
365
+
-**Docker**: Ensure Docker is installed and running on your machine
0 commit comments