
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Functional toolkit for rethinkdb.
id
, createdAt
, updatedAt
.npm install -S nothinkdb
import Joi from 'joi';
import { r, Table, schema } from 'nothinkdb';
const userTable = new Table({
table: 'user',
schema: () => ({
id: schema.id,
name: Joi.string().required(),
isPremium: Joi.boolean().default(false),
}),
});
async function run() {
// open rethinkdb connection
const connection = await r.connect({ db: 'test' });
// sync table
await userTable.sync(connection);
// create user data
const normalUser = userTable.create({ name: 'user1' });
const premiumUser = userTable.create({ name: 'user2', isPremium: true });
// insert user data into rethinkdb server
await userTable.insert([
normalUser,
premiumUser,
]).run(connection);
// getAll users
const users = await userTable.query().coerceTo('array').run(connection);
console.log(users);
// close rethinkdb connection
await connection.close();
}
run();
If you want to see more examples, See the Examples
See the API Reference.
FAQs
Functional toolkit for rethinkdb
The npm package nothinkdb receives a total of 4 weekly downloads. As such, nothinkdb popularity was classified as not popular.
We found that nothinkdb 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.