We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use this with the gorm(https://github.com/jinzhu/gorm).
If yes, can you give any example code(noob here).
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use this on gorm too. And I made a wrapper on it try to act as a driver. but I got some error. and here is my code
package driver import ( "database/sql" "database/sql/driver" "github.com/go-sql-driver/mysql" "github.com/tsenart/nap" ) type MySQLSplitDriver struct { mysql.MySQLDriver } func (d MySQLSplitDriver) Open(dsn string) (driver.Conn, error) { return nap.Open("mysql", dsn) } func init() { sql.Register("mysqlsplit", &MySQLSplitDriver{}) }
I think this might be a decent way to use it. Could you make a fix?
Sorry, something went wrong.
No branches or pull requests
Can I use this with the gorm(https://github.com/jinzhu/gorm).
If yes, can you give any example code(noob here).
The text was updated successfully, but these errors were encountered: