![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
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.
:fairy: lite model for sqlite, mongodb like driver API. make life easy. :surfing_man:
:fairy: lite model for sqlite, mongodb like driver API. make life easy. :surfing_man:
npm i lite-model
or yarn add lite-model
Create a table
CREATE TABLE test.users (
id INT PRIMARY KEY NOT NULL,
name CHAR(50) NOT NULL,
gender CHAR(10) CHECK(gender IN('male', 'female', 'unknown')) NOT NULL,
mail CHAR(128) NOT NULL,
age INT NOT NULL,
createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updatedAt TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
);
insert data
const Model = require('lite-model');
const model = new Model('test.db', 'users');
model.insert({
name: 'tom',
gender: 'male',
age: 30,
mail: 'tommy@hello.cc',
});
model.insert({
name: 'jerry',
gender: 'female',
age: 31,
mail: 'jerry@world.cc',
});
update date:
const res = model.update({id: 1}, { name: 'Tommy'});
console.log(res);
query:
const res = model.findOne({ where: { id: 1 }});
console.log(res);
const users = model.find({
where: { id: {$gte: 1 } },
limit: 10,
offset: 1,
order: { age: 'desc' }
})
console.log(users);
delete
const res = model.findOne({ id: 1 });
console.log(res);
FAQs
:fairy: lite model for sqlite, mongodb like driver API. make life easy. :surfing_man:
The npm package lite-model receives a total of 1 weekly downloads. As such, lite-model popularity was classified as not popular.
We found that lite-model 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.