You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation (https://github.com/ory/ladon#persistence) the SQL example shows a database connection created using stdlib's sql.Open, however the ladon/manager/sqlNewSQLManager function lists the first argument as db *sqlx.DB. As a result, when a standard *sql.DB is passed in, this error is given:
cannot use ladonDb (type *"database/sql".DB) as type *sqlx.DB in argument to "github.com/ory/ladon/manager/sql".NewSQLManager
The text was updated successfully, but these errors were encountered:
I realize this is closed, but I ran into the same thing, so I wrote my own SQLManager https://github.com/wirepair/ladonsqlmanager that removes the migration/sqlx dependencies. It requires you to manage the tables externally (which is what i want to do anyways).
In the documentation (https://github.com/ory/ladon#persistence) the SQL example shows a database connection created using stdlib's
sql.Open
, however theladon/manager/sql
NewSQLManager
function lists the first argument asdb *sqlx.DB
. As a result, when a standard*sql.DB
is passed in, this error is given:The text was updated successfully, but these errors were encountered: