
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
npm install flexgres --save
You will need to use the pg-query
package and the pg
driver.
You can install it by writing:
npm install pg-query pg --save
Configuring your table is really simple all you have to do is define your table structure in JSON. An example usage is:
var name = "chris", password = "12345", host = "localhost", port = "5432", db = "flexgres";
var client = require("pg");
var queryConn = "postgres://"+name+":"+password+"@"+host+":"+port+"/"+db+"";
client = new pg.Client(queryConn);
require("./test.js")({
"driver": client,
"logging": true,
"tables": [
{
"tableName": "test",
"columns": [
{
"name": "id",
"type": "INT",
"primary": true,
"null": false
},
{
"name": "name",
"type": "text",
"primary": true,
"null": false
}
]
},
{
"tableName": "testTable",
"columns": [
{
"name": "test",
"type": "INT",
"primary": true,
"null": false
},
{
"name": "test2",
"type": "text",
"primary": false,
"null": false
}
]
}
]
})
FAQs
Flexibly change your Postgres schemas with Flexgres.
We found that flexgres demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.