
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Pskv is an interface for key-value storage for PostgreSQL.
import { Pskv } from "skv";
const client = new Pskv({
dbConfig: {
user: process.env.POSTGRES_USER,
password: process.env.POSTGRES_PASSWORD,
database: process.env.POSTGRES_DB,
host: "db"
},
prefix: "app", // Prefix for the keys ("namespace"). Default: skv
tableName: "data_storage" // Name of the table used by Skv to store data (default: skv)
});
const name = "Emily";
await client.set("name", name); // Sets value
await client.set("name2", "Emmy");
// You can use generics to convert to <Type> in TypeScript
const namefromdb = await client.get<string>("name");
// name === namefromdb: true
await client.has("name");
//true
await client.delete("name");
await client.has("name");
// false
await client.clear();
// Clears all values in DB
await client.has("name2");
// Name2 is undefined
To run test suite (with jest):
docker compose -f docker/docker-compose.test.yml up --abort-on-container-exit
Pskv is licensed under the terms of the MIT License.
Font used in the documentation code blocks is Iosevka which is licensed under the terms of the SIL Open Font License 1.1. Thanks to the author(s) for creating this cool font!
FAQs
Simple key-value storage for PostGresSQL
The npm package pskv receives a total of 6 weekly downloads. As such, pskv popularity was classified as not popular.
We found that pskv 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.