6.0.69 • Published 3 years ago

@zxteam/sql-postgres v6.0.69

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

ZXTeam's PostgreSQL Facade

npm version badge downloads badge commit activity badge last commit badge twitter badge

Version table

CREATE TABLE "__dbVersion" (
	"version" VARCHAR(64) NOT NULL PRIMARY KEY,
	"utc_deployed_at" TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() AT TIME ZONE 'utc'),
	"log" TEXT NOT NULL
)

NOTE: Name of table may be overriden via migration's opts

Connection URL

Format

postgres://[${user}[:${password}]]@${host}[:${port}]/${databaseName}[?app=${applicationName}&schema=${defaultSchema}]
postgres+ssl://[${user}[:${password}]]@${host}[:${port}]/${databaseName}[?app=${applicationName}&schema=${defaultSchema}]

Examples

Localhost

postgres://localhost:5432/postgres

Remote PostgreSQL server my_pg_host with SSL prefer mode (no certificate validation, just for encryption)

postgres+ssl://my_pg_host:5432/postgres

Note: For full SSL mode you need to pass opts.ssl programically. Passing certificates via URL does not supported.

Development Notes

Postgres inside Docker

Start

docker kill postgres10devdb; docker rm postgres10devdb; docker run --name postgres10devdb --rm --publish 5432:5432 --detach zxteamorg/devel.postgres-10:20200914

Start + run tests

docker kill postgres10devdb; docker rm postgres10devdb; docker run --name postgres10devdb --rm --publish 5432:5432 --detach zxteamorg/devel.postgres-10:20200914; sleep 5; npm run build && npm run test:local
6.0.69

3 years ago

6.0.68

4 years ago

6.0.66

4 years ago

6.0.64

4 years ago

6.0.63

4 years ago

6.0.60

4 years ago

6.0.59

4 years ago

6.0.57

4 years ago

6.0.56

4 years ago

6.0.53

4 years ago

6.0.50

4 years ago

6.0.48

4 years ago

6.0.47

4 years ago

6.0.46

4 years ago

6.0.45

4 years ago

6.0.43

4 years ago

6.0.42

4 years ago

6.0.41

4 years ago

6.0.40

4 years ago

6.0.38

4 years ago

6.0.36

4 years ago

6.0.35

4 years ago