Skip to content

Commit

Permalink
Merge pull request #10 from voxoco/dep-woraround
Browse files Browse the repository at this point in the history
sqlite lib dependency workaround
  • Loading branch information
jmordica committed Jan 7, 2023
2 parents 5eae39d + 1c0e0bf commit a855d20
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ EXPOSE 4001

WORKDIR /app

COPY import_map.json .
RUN deno cache import_map.json

ADD . .

RUN deno cache main.ts
Expand Down
17 changes: 8 additions & 9 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion import_map.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"sqlite3": "https://deno.land/x/sqlite3@0.7.2/mod.ts",
"sqlite3": "https://deno.land/x/sqlite3@0.6.1/mod.ts",
"natsws": "https://deno.land/x/natsws@v1.11.1/src/mod.ts",
"nats": "https://deno.land/x/nats@v1.10.2/src/mod.ts",
"serve": "https://deno.land/std@0.170.0/http/server.ts",
Expand Down
2 changes: 1 addition & 1 deletion util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function bootstrapDataDir(dataDir: string) {
}

export function setupDb(file: string): Database {
const db = new Database(file, { unsafeConcurrency: true });
const db = new Database(file);

db.exec("pragma locking_mode = exclusive");
db.exec("pragma auto_vacuum = none");
Expand Down

0 comments on commit a855d20

Please sign in to comment.