Registry / database / lambdaorm-base

lambdaorm-base

JSON →
library1.7.13jsnpmunverified

LambdaORM Base (v1.7.13) provides the core contracts, shared utilities, and type definitions for the LambdaORM ecosystem, a TypeScript-first ORM supporting MySQL, MariaDB, SQLite, PostgreSQL, Oracle, SqlServer, and MongoDB. It offers a unified query language across SQL and NoSQL databases with advanced features like dynamic query building and schema introspection. Released stable, with regular updates aligned with the LambdaORM family. Key differentiators: full TypeScript support, multi-database abstraction, and a fluent API that reduces boilerplate compared to traditional ORMs like TypeORM or Sequelize.

npm install lambdaorm-base
INSTALL
IMPORT
SIG · LAMBDAORM-BASE
L
lambdaorm-base
databasejavascriptv1.7.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Entity
import { Entity } from 'lambdaorm-base'
const Entity = require('lambdaorm-base').Entity
ESM-only; CommonJS require not supported due to ES module type.
Repository
import { Repository } from 'lambdaorm-base'
Named export; TypeScript usage recommended.
QueryBuilder
import { QueryBuilder } from 'lambdaorm-base'
import { QueryBuilder } from 'lambdaorm'
QueryBuilder is defined in lambdaorm-base, not in the main lambdaorm package.

Defines an entity and repository using the contracts and types from lambdaorm-base.

import { Entity, Repository } from 'lambdaorm-base'; const entity: Entity = { name: 'User', columns: { id: { type: 'number', primary: true }, name: { type: 'string' } } }; const repo: Repository = { name: 'UserRepository', entity: 'User' }; console.log('Entity:', entity); console.log('Repository:', repo);
Debug
Known issues
gotchaPackage is not meant to be used standalone; it is a shared dependency for lambdaorm packages. Direct usage may break if lambdaorm is not installed.
fix
Install lambdaorm alongside lambdaorm-base.
affects: >=1.0.0
deprecatedSome entity definitions changed between v1.0 and v1.7; ensure compatibility with your lambdaorm version.
fix
Update to latest version and check entity schema.
affects: >=1.0.0 <1.7.0
gotchaImport paths changed in v1.5: use direct imports from 'lambdaorm-base' instead of deep paths.
fix
Update imports to 'lambdaorm-base'.
affects: >=1.5.0
Errors
Common errors & fixes
Cannot find module 'lambdaorm-base' or its corresponding type declarations.
Package not installed or missing in node_modules.
fix
Run `npm install lambdaorm-base`.
Module not found: Error: Can't resolve 'lambdaorm-base'
Package not installed or import path incorrect.
fix
Install package and use correct import: `import { ... } from 'lambdaorm-base'`.
Upgrade
Version history
1.7.13latest on npm
Audit
Dependencies
lambdaormrequiredLambdaORM Base is designed as a supporting package for the LambdaORM ORM; it defines contracts and schemas used by the main `lambdaorm` package.
Agent activity
2 hits · last 30 days
node
2
Resources
lambdaorm-base — npm install lambdaorm-base · libregistry