@teliagen/adapter-sequelize
v0.4.2
Published
Sequelize adapter for Teliagen Framework
Maintainers
Readme
@teliagen/adapter-sequelize
The official Sequelize adapter for the Teliagen data persistence layer.
Features
- Seamless Integration: Connects Teliagen Entities to Sequelize Models.
- Dialect Support: Postgres, MySQL, MariaDB, SQLite, MSSQL.
- Auto-Sync: Automatically synchronizes your schema in development.
Installation
npm install @teliagen/adapter-sequelize sequelize
# Install your driver (e.g., pg, mysql2)
npm install pg pg-hstoreQuick Start
import { SequelizeAdapter } from '@teliagen/adapter-sequelize';
import { TeliagenApp } from '@teliagen/server/app';
const app = new TeliagenApp();
const adapter = new SequelizeAdapter({
dialect: 'postgres',
host: 'localhost',
database: 'myapp',
username: 'postgres',
password: 'password'
});
app.useDataAdapter(adapter);
await app.start();Documentation
For full documentation, visit docs.teliagen.org.
License
Apache-2.0
