Skip to main content

This module provides an efficient entity validation and facilitates communication with a database. It abstracts complexity, ensuring data integrity while storing and retrieving from a database.

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
2 months ago (1.0.0)

Ooneex Model for entity validation and communicate with a database

This module provides an efficient entity validation and facilitates communication with a database. It abstracts complexity, ensuring data integrity while storing and retrieving from a database. The features include strong type checking, form validation, and a simplified approach to querying the database. Ideal for projects looking for robust database handling with an emphasis on code readability and ease of use.

How to Use

import { Model, F, model } from "@ooneex/model"

@model()
class UserModel extends Model {
	id = F.uuid();
	email = F.email();
}

License

MIT

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @ooneex/model

Import symbol

import * as mod from "@ooneex/model";

Add Package

npx jsr add @ooneex/model

Import symbol

import * as mod from "@ooneex/model";

Add Package

yarn dlx jsr add @ooneex/model

Import symbol

import * as mod from "@ooneex/model";

Add Package

pnpm dlx jsr add @ooneex/model

Import symbol

import * as mod from "@ooneex/model";

Add Package

bunx jsr add @ooneex/model

Import symbol

import * as mod from "@ooneex/model";