Closed fish0373 closed 3 years ago
@nodece @stu01509
Hi @fish0373
Did you mean the npm package.js sequelize version? If so I will create the PR to upgrade that.
yes, sequelize current version is v6 v5 is plan to deprecated I wish this project can be support v6 thanks
@nodece @stu01509 please update it.
We had some previous work at: https://github.com/node-casbin/sequelize-adapter/pull/35
And now we are resurrecting this issue.
@fish0373 Quote @zhmushan
We need to wait for "sequelize-typescript" to release 2.0.0
@fish0373 BTW, you can use: https://github.com/node-casbin/js-sequelize-adapter instead
Hope someone will take this issue: https://github.com/node-casbin/js-sequelize-adapter/issues/11
Thanks But, when I update it, I got another problem. It happened on function getQueryInterface. My typescript version is 4.1.2. maybe I need to enable some compiler options? [
](url)
@fish0373 which adapter repo did you use?
casbin 5.2.0 casbin-sequelize-adapter 2.1.0 sequelize 6.3.5
@fish0373 can you try https://github.com/node-casbin/js-sequelize-adapter ?
I try js-sequelize-adapter but it not support typescript type casting when I import then it make some problem and I require it then type always is Any type
@fish0373 The library only supports sequelize 5.x, we will support sequelize 6.x in next version.
@fish0373
We can try latest sequelize-typescript 2.0.0-beta.1 (a month ago) with sequelize >=6.2, see: https://github.com/RobinBuschmann/sequelize-typescript/pull/856
@divy9881 can you have a look at this?
@hsluoyz @nodece i installed the new versions of "sequelize": "^6.6.2", "sequelize-typescript": "^2.1.0" , Then I ran the yarn test function, it first gave me a mysql error which i resolved by starting the mysql server on my local machine , now it expects me to have a database names casbin can you please guide me through the testing phase of the changes I've made.
@nodece
@Yash-g17 you need to create a database named casbin
in mysql tool database by create database casbin
command.
@nodece Thanks , that worked Creating a pull request now
how long to start support v6