thinkjs / thinkjs

Use full ES2015+ features to develop Node.js applications, Support TypeScript.
https://thinkjs.org/
MIT License
5.31k stars 617 forks source link

thinkjs 的 Model 可以独立使用吗? #1480

Closed tumobi closed 4 years ago

tumobi commented 4 years ago

使用 Thinkjs 的 Model 操作数据库习惯了,觉得方便又好用。但是做一些非 web 项目时,如数据采集、定时任务简单项目时,想使用 thinkjs 的 Model 封装的方法操作数据库。

welefen commented 4 years ago

https://github.com/thinkjs/think-model/blob/master/index.js 参考这里调用就可以了

lizheming commented 4 years ago

https://github.com/thinkjs/thinkjs/issues/1398 相关 issue