Skip to content

Commit

Permalink
implemented SQLx interface
Browse files Browse the repository at this point in the history
  • Loading branch information
halvardssm committed Apr 21, 2024
1 parent 7d5841d commit 64a7d2f
Show file tree
Hide file tree
Showing 15 changed files with 421 additions and 530 deletions.
14 changes: 14 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,22 @@ services:
- 3306:3306
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: testdb
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "--user", "root"]
interval: 3s
timeout: 3s
retries: 10
mariadb:
image: mariadb
restart: always
ports:
- 3307:3306
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: true
MARIADB_DATABASE: testdb
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "127.0.0.1"]
interval: 3s
timeout: 3s
retries: 10
5 changes: 2 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
"format:check": "deno fmt --check",
"type:check": "deno check mod.ts",
"doc:check": "deno doc --lint src",
"test": "deno task db:restart && deno test --allow-env --allow-net=127.0.0.1:3306 ./test.ts; deno task db:stop",
"test": "deno task db:restart && deno test -A; deno task db:stop",
"db:restart": "deno task db:stop && deno task db:start",
"db:start": "docker compose up -d --remove-orphans --wait && sleep 2",
"db:stop": "docker compose down --remove-orphans --volumes",
"typedoc": "deno run -A npm:typedoc --theme minimal --ignoreCompilerErrors --excludePrivate --excludeExternals --entryPoint client.ts --mode file ./src --out ./docs"
"db:stop": "docker compose down --remove-orphans --volumes"
},
"imports": {
"@halvardm/sqlx": "../deno-sqlx/mod.ts",
Expand Down
Loading

0 comments on commit 64a7d2f

Please sign in to comment.