Fix sqlarr of api (#1188)

This commit is contained in:
2025-11-30 20:29:46 +01:00
committed by GitHub
parent e401ca98c0
commit af4742ae0b
6 changed files with 8 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ pkgs.mkShell {
bun
biome
# for psql to debug from the cli
postgresql_15
postgresql_18
# to build libvips (for sharp)
nodejs
node-gyp

View File

@@ -83,7 +83,7 @@ export function sqlarr(array: unknown[]): string {
? sqlarr(item)
: typeof item === "object"
? `"${JSON.stringify(item).replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`
: `"${item}"`,
: `"${item?.toString().replaceAll('"', '\\"')}"`,
)
.join(", ")}}`;
}

View File

@@ -7,7 +7,7 @@ pkgs.mkShell {
sqlc
go-swag
# for psql in cli (+ pgformatter for sql files)
postgresql_15
postgresql_18
pgformatter
# to run tests
hurl

View File

@@ -190,12 +190,12 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
postgres:
image: postgres:15
image: postgres:18
restart: on-failure
env_file:
- ./.env
volumes:
- db:/var/lib/postgresql/data
- db:/var/lib/postgresql
ports:
- "5432:5432"
environment:

View File

@@ -139,12 +139,12 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
postgres:
image: postgres:15
image: postgres:18
restart: unless-stopped
env_file:
- ./.env
volumes:
- db:/var/lib/postgresql/data
- db:/var/lib/postgresql
environment:
- POSTGRES_USER=$PGUSER
- POSTGRES_PASSWORD=$PGPASSWORD

View File

@@ -6,7 +6,7 @@ pkgs.mkShell {
go-migrate
go-swag
# for psql in cli (+ pgformatter for sql files)
postgresql_15
postgresql_18
pgformatter
# to debug video files
mediainfo