akirarika / milkio

🌟 A TypeScript Framework - Now, break the boundaries between Frontend and Backend
https://milkio.fun
334 stars 19 forks source link

Add nodejson driver #10

Closed neko-para closed 3 years ago

neko-para commented 3 years ago

Add basic support for nodejson driver. Add new dependence @types/node in driver. Add LICENSE and tsconfig.


Still WIP. Some behaviors need to be determined.

neko-para commented 3 years ago

I'm not sure how model work in driver. Can user pass anything to driver(like dexie driver does)? I havn't found any example yet. And is there a place for initialization? Or if it have to be initialized by user(e.g. add a class for json loading and saving, and pass it to driver)

akirarika commented 3 years ago

Thanks for your help!!

This commit let me know some of the flaws that drivers api design, I will improve them in the near future and write a detailed document~

file_328450

I’ll merge it first, I’m very very happy to be able to get your help quq!!