vasta-orm
v0.0.8
Published
Active record ORM built on top of Kysely
Downloads
927
Maintainers
Readme
Vasta
Vasta is a type-safe Object Relational Mapper (ORM) layer for Kysely with syntax and usage inspired by Laravel's Eloquent ORM. With Vasta, you can define your models and relationships in a clean and intuitive way, while still leveraging the power and flexibility of Kysely for your database interactions.
Vasta provides an active record pattern interface for querying and manipulating your data, making it easy to work with your database in a model-instance oriented way. You can define your models with attributes, relationships, methods, and more. You can use these model properties to perform actions directly on your models before easily saving those changes to the database.
const pet = await Pet.findOrFail(1);
pet.name = "Fluffy";
await pet.save();Documentation
Check out the official documentation page for usage instructions and examples.
