
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
sqlmongoose
Advanced tools
SQLMongoose is a powerful, modern, and easy-to-use ORM for SQLite3, inspired by Mongoose. It's designed to be intuitive for beginners and powerful for advanced users. It provides a simple and elegant way to interact with your SQLite database.
npm install sqlmongoose
Here's a quick example to get you started:
import { sqlmongoose, Schema, DataTypes } from 'sqlmongoose';
// 1. Connect to the database
await sqlmongoose.connect(':memory:');
// 2. Define a schema
const userSchema = new Schema({
name: { type: DataTypes.STRING, required: true },
email: { type: DataTypes.STRING, unique: true },
age: { type: DataTypes.NUMBER, default: 0 },
});
// 3. Define a model
const User = sqlmongoose.define('User', userSchema);
// 4. Create a new user
const user = await User.create({
name: 'John Doe',
email: 'john.doe@example.com',
age: 30,
});
console.log('User created:', user);
// 5. Find users
const users = await User.find().where('age', '>', 25).execute();
console.log('Users older than 25:', users);
For more detailed information and advanced usage, please check out the documentation.
You can find more examples in the examples directory.
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
Mongoose-like schemas and models for SQLite3
The npm package sqlmongoose receives a total of 0 weekly downloads. As such, sqlmongoose popularity was classified as not popular.
We found that sqlmongoose demonstrated a healthy version release cadence and project activity because the last version was released less than 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.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.