0.1.2 • Published 5 years ago
le-querybuilder-aurora-mysql-data-api v0.1.2
le-querybuilder-aurora-mysql-data-api
for use with serverless aurora data api mysql
Code Standard
- Use function for tree shaking purpose, aim to be near zero cost to code size
- Dont use overload cause it don't work well with bind/call/apply https://github.com/Microsoft/TypeScript/issues/28582
- Another package or package that use it should do the orm stuff themselves (such as defining entity type), for example of creating entity can refer to entitySchema.test.ts
DONE
- Query builder for insert
- Query builder for batch insert
- Query builder for select (might still small function like HAVING, can just add in easily)
- Query builder for update
- Driver (but no tests + documentation)
TODO
- [] Query builder for delete
- [] Documentation
Usage with Driver
refer to the test folder
Refer to the test/entitySchema.test.ts on how to use the entitySchema and create entity schema in your project