1.1.19 • Published 1 year ago
@lakutata-component/typeorm v1.1.19
Quickstart
Step 1: Configure typeorm component
const app = await createApp({
id: 'test.app',
name: 'tester',
components: {
typeorm: {
class: TypeOrmComponent,
options: {
type: 'mysql',
host: 'localhost',
port: 3306,
username: 'user',
password: 'passwd',
database: 'database',
synchronize: true,
entities: [
`${path.resolve(__dirname, './entities/*')}`
]
} as MysqlConnectionOptions
}
}
})
Step 2: Get typeorm component
const typeorm: TypeOrmComponent = app.Components.get<TypeOrmComponent>('typeorm')
Step 3: Use it
typeorm.getRepository(...)
typeorm.getMongoRepository(...)
typeorm.transaction(...)
typeorm.query(...)
...
@lakutata/core required.
Documentations
See Typeorm official documents
How to Contribute
Please let us know how can we help. Do check out issues for bug reports or suggestions first.
License
1.1.19
1 year ago
1.1.18
1 year ago
1.1.17
1 year ago
1.1.16
1 year ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.13
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.10
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago