@kitmi/feat-db
v0.3.0
Published
Database related utilities
Downloads
7
Readme
@kitmi/feat-db
Jacaranda Framework Database Add-on Features
@kitmi/feat-db
Features
- dbImporter
Helpers
- excel
- writeExcelTemplate_
- loadExcelFile_
Usage
Features
- Export the feature in the app module
import { dbImporter } from '@kitmi/feat-db';
export default {
dbImporter,
};
- Add the feature into config
dbImporter:
service: 'prisma'
- Use anywhere
const dbImporter = app.getService('dbImporter');
await dbImporter.importList_();
// it dbImporter.import_();
Helpers
import { writeExcelTemplate_ } from '@kitmi/feat-db';
export default {
dbImporter,
};
License
- MIT
- Copyright (c) 2023 KITMI PTY LTD