# lakutata-component-typeorm
**Repository Path**: nnxr/lakutata-component-typeorm
## Basic Information
- **Project Name**: lakutata-component-typeorm
- **Description**: No description available
- **Primary Language**: TypeScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-06-25
- **Last Updated**: 2023-04-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[](https://npmjs.org/package/@lakutata-component/typeorm)
[](https://npmjs.org/package/@lakutata-component/typeorm)
[](https://snyk.io/test/npm/@lakutata-component/typeorm)
[](https://npmjs.org/package/@lakutata-component/typeorm)
## 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('typeorm')
#### Step 3: Use it
typeorm.getRepository(...)
typeorm.getMongoRepository(...)
typeorm.transaction(...)
typeorm.query(...)
...
> @lakutata/core required.
## Documentations
See [Typeorm official documents](https://github.com/typeorm/typeorm/tree/master/docs)
## How to Contribute
Please let us know how can we help. Do check out [issues](https://gitee.com/nnxr/lakutata-component-typeorm/issues) for bug reports or suggestions first.
## License
[MIT](LICENSE)