Docker images / prepare-release (push) Successful in 11s
Docker images / backend-test (push) Failing after 12s
Docker images / backend-image (push) Skipped
Docker images / frontend-image (push) Successful in 3m14s
Docker images / notify-webhook (push) Skipped
Docker images / updater-image (push) Successful in 47s
Docker images / publish-release (push) Skipped
JSON-колонки передаются строкой с приведением ::jsonb, иначе node-pg кодирует массивы как PostgreSQL array и ETL падает. Повтор импорта идёт, пока нет маркера. Том PG18 монтируется в /var/lib/postgresql. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
379 B
TypeScript
12 lines
379 B
TypeScript
import assert from "node:assert/strict"
|
|
|
|
/** node-pg encodes a JS array as a PostgreSQL array (`{...}`), not JSON (`[...]`). */
|
|
{
|
|
const peers = [{ endpoint: "msk-gw02.rtnt.top:13232" }]
|
|
const asJson = JSON.stringify(peers)
|
|
assert.equal(asJson.startsWith("["), true)
|
|
assert.equal(asJson.includes("msk-gw02.rtnt.top:13232"), true)
|
|
}
|
|
|
|
console.log("sqlite-json.test.ts: ok")
|