mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-06 21:25:08 -05:00
Fix sqlarr of api (#1188)
This commit is contained in:
parent
e401ca98c0
commit
af4742ae0b
@ -4,7 +4,7 @@ pkgs.mkShell {
|
|||||||
bun
|
bun
|
||||||
biome
|
biome
|
||||||
# for psql to debug from the cli
|
# for psql to debug from the cli
|
||||||
postgresql_15
|
postgresql_18
|
||||||
# to build libvips (for sharp)
|
# to build libvips (for sharp)
|
||||||
nodejs
|
nodejs
|
||||||
node-gyp
|
node-gyp
|
||||||
|
|||||||
@ -83,7 +83,7 @@ export function sqlarr(array: unknown[]): string {
|
|||||||
? sqlarr(item)
|
? sqlarr(item)
|
||||||
: typeof item === "object"
|
: typeof item === "object"
|
||||||
? `"${JSON.stringify(item).replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`
|
? `"${JSON.stringify(item).replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`
|
||||||
: `"${item}"`,
|
: `"${item?.toString().replaceAll('"', '\\"')}"`,
|
||||||
)
|
)
|
||||||
.join(", ")}}`;
|
.join(", ")}}`;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ pkgs.mkShell {
|
|||||||
sqlc
|
sqlc
|
||||||
go-swag
|
go-swag
|
||||||
# for psql in cli (+ pgformatter for sql files)
|
# for psql in cli (+ pgformatter for sql files)
|
||||||
postgresql_15
|
postgresql_18
|
||||||
pgformatter
|
pgformatter
|
||||||
# to run tests
|
# to run tests
|
||||||
hurl
|
hurl
|
||||||
|
|||||||
@ -190,12 +190,12 @@ services:
|
|||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15
|
image: postgres:18
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@ -139,12 +139,12 @@ services:
|
|||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15
|
image: postgres:18
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=$PGUSER
|
- POSTGRES_USER=$PGUSER
|
||||||
- POSTGRES_PASSWORD=$PGPASSWORD
|
- POSTGRES_PASSWORD=$PGPASSWORD
|
||||||
|
|||||||
@ -6,7 +6,7 @@ pkgs.mkShell {
|
|||||||
go-migrate
|
go-migrate
|
||||||
go-swag
|
go-swag
|
||||||
# for psql in cli (+ pgformatter for sql files)
|
# for psql in cli (+ pgformatter for sql files)
|
||||||
postgresql_15
|
postgresql_18
|
||||||
pgformatter
|
pgformatter
|
||||||
# to debug video files
|
# to debug video files
|
||||||
mediainfo
|
mediainfo
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user