@teliagen/adapter-typeorm
v0.4.2
Published
TypeORM adapter for Teliagen Framework
Maintainers
Readme
@teliagen/adapter-typeorm
The official TypeORM adapter for the Teliagen data persistence layer.
Features
- Standard Compliance: Maps Teliagen entities to TypeORM entity schemas.
- Robustness: Leverages TypeORM's mature ecosystem and migrations.
- Flexibility: Full access to underlying DataSource customization.
Installation
npm install @teliagen/adapter-typeorm typeorm reflect-metadata
# Install your driver (e.g., pg, mysql)
npm install pgUsage
import { TypeORMAdapter } from '@teliagen/adapter-typeorm';
import { TeliagenApp } from '@teliagen/server/app';
const app = new TeliagenApp();
const adapter = new TypeORMAdapter({
type: 'postgres',
host: 'localhost',
database: 'myapp',
username: 'postgres',
password: 'password',
synchronize: true // Dev only
});
app.useDataAdapter(adapter);
await app.start();Documentation
For full documentation, visit docs.teliagen.org.
License
Apache-2.0
