
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
clark-orm
Advanced tools
If you like this project, please give us a star on Github.
ClarkORM is a Typescript ORM built on top of Lucid ORM (AdonisJS).
AdonisJS is a great framework and it has one of the best ORM. But it works only in its ecosystem. Using ClarkORM you can have all the benefits of Lucid, but in any Node.js project you want.
ClarkORM is built on top of Lucid ORM and Lucid ORM is built on top of knex. The idea of ClarkORM is let you manage your migrations and seeds with knex the way you already do. But when it comes to Models ClarkORM comes on scene.
npm install clark-orm
npm install luxon
import { DateTime } from "luxon";
import { BaseModel, column } from "clark-orm/Orm";
export class CityModel extends BaseModel {
public static table = "cities";
@column({ isPrimary: true })
public id: number;
@column()
public name: string;
@column.dateTime({ autoCreate: true })
public createdAt: DateTime;
@column.dateTime({ autoCreate: true, autoUpdate: true })
public updatedAt: DateTime;
}
Lucid has a lot of options, but what do you can do using ClarkORM? We offer some things that you can use like you would use with Lucid:
clark-orm/Orm
clark-orm/Database
clark-orm/Factory
clark-orm/Event
You can learn more about the models here.
We use the knexfile.ts in the root of your project because Lucid ORM is built on top of knex
import { defineConfig } from 'clark-orm';
export default defineConfig({
connection: 'sqlite',
connections: {
sqlite: {
client: 'sqlite',
connection: {
filename: './db.sqlite',
},
useNullAsDefault: true,
healthCheck: false,
debug: false,
},
},
});
To use ClarkORM you need to know at least a little about knex and Lucid
Do you like to learn with examples? We have one here
FAQs
ClarkORM
The npm package clark-orm receives a total of 1 weekly downloads. As such, clark-orm popularity was classified as not popular.
We found that clark-orm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.