brianc / node-sql

SQL generation for node.js
MIT License
1.05k stars 191 forks source link

I can't use sql in TypeScript #407

Closed AdaVih closed 5 years ago

AdaVih commented 5 years ago

Run in the Angular.

图片
charsleysa commented 5 years ago

@AdaVih just a heads up it looks like this package isn't maintained anymore https://github.com/brianc/node-sql/issues/405 Edit: also here's a PR that I think fixes your issue, but it hasn't been merged https://github.com/brianc/node-sql/pull/406

AdaVih commented 5 years ago

It can't find node-sql-ts #405

图片

My issue is the same as #406

AdaVih commented 5 years ago

@charsleysa

charsleysa commented 5 years ago

@AdaVih node-sql-ts is a separate repo and package, to install you need to use npm install sql-ts and use import { ... } from 'sql-ts'

AdaVih commented 5 years ago

@charsleysa Thx.I tried the documentation method again, and it worked.