Skip to content

Commit 0602fe0

Browse files
fix: use db_connector/db_sqlite for Nim 2.0 (std/db_sqlite removed from stdlib)
1 parent 0b507f1 commit 0602fe0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frameworks/prologue/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM nimlang/nim:2.0.14-alpine AS build
22
RUN apk add --no-cache sqlite-dev
33
WORKDIR /app
44
COPY src/ ./
5-
RUN nimble install -y prologue zippy
6-
RUN nim c -d:release -d:danger --opt:speed --threads:on -o:server server.nim
5+
RUN nimble install -y prologue zippy db_connector
6+
RUN nim c -d:release -d:danger --opt:speed --threads:on --passL:-lsqlite3 -o:server server.nim
77

88
FROM alpine:3.19
99
RUN apk add --no-cache libgcc sqlite-libs

frameworks/prologue/src/server.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import prologue
22
import std/[json, strutils, math, os, tables]
3-
import std/db_sqlite
3+
import db_connector/db_sqlite
44
import std/zippy
55

66
type

0 commit comments

Comments
 (0)