A minimal ORM library for YDB database, designed for rapid development of serverless applications. Current stable version is 2.6.2. Released as needed; key features include lightweight data models, automatic migrations, and compatibility with the Fastify web server framework. Differentiates by providing a simple, Promise-based API and built-in schema synchronization.
npm install ydb-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows defining a model with YdbModel and YdbDataType, initializing Ydb with a connection string, creating and saving a record.
Replace 'endpoint' and 'database' with a single 'connectionString'.
Update authentication options to use 'credential', 'token', or 'meta'.
Ensure Ydb.init() is called exactly once at application startup.
Remove explicit Ydb.init() if using fastify-ydb-orm.
Set sync: true when registering the plugin if you want automatic schema synchronization.
Ensure Ydb.init({...}) is called before any database access.Use named import: import { YdbModel } from 'ydb-orm'.