2.13.0 • Published 4 months ago
@themost/pg v2.13.0
@themost/pg
Most Web Framework PostgreSQL Adapter
License: BSD-3-Clause
Installation
npm install @themost/pg
Usage
Register PostgreSQL adapter on app.json as follows:
"adapterTypes": [
...
{ "name":"PostgreSQL Data Adapter", "invariantName": "postgres", "type":"@themost/pg" }
...
],
adapters: {
"postgres": { "name":"local-db", "invariantName":"postgres", "default":true,
"options": {
"host":"localhost",
"post":5432,
"user":"user",
"password":"password",
"database":"db"
}
}
}
Testing
Clone project and create a .env
file to set testing environment variables
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=pass
NODE_ENV=development
(*) DB_PASSWORD is optional
If you are using Gitpod create a .env
file and set DB_USER=gitpod
DB_HOST=localhost
DB_PORT=5432
DB_USER=gitpod
NODE_ENV=development
Execute npm test
.
The operation will create a new test database test_db
with sample data that is going to be used for testing adapter.
2.12.0
5 months ago
2.13.0
4 months ago
2.11.0
10 months ago
2.8.0
11 months ago
2.7.0
1 year ago
2.6.4
2 years ago
2.6.1
2 years ago
2.6.0
2 years ago
2.6.3
2 years ago
2.6.2
2 years ago
2.5.5
3 years ago
2.5.2
3 years ago
2.5.1
3 years ago
2.5.4
3 years ago
2.5.3
3 years ago
2.2.1
6 years ago
2.1.3
7 years ago
2.1.2
7 years ago
2.1.1
7 years ago
2.0.5
8 years ago
2.0.4
8 years ago
2.0.0-alpha.1
8 years ago
2.0.0-alpha
8 years ago