-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
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
ladon_policy table not getting created #100
Comments
The code is hard to read because its not formatted, could you please fix that? The most likely reason is that you forgot to run |
Yes, using CreateSchemas solved the problem (partially). While creating the db object, it is also necessary to set parseTime to true. The documentation can be more comprehensive (as pointed out in another issue, sqlx must be used instead of sql). Please consider editing it. |
While you're at it, could you improve those sections in a PR? That would be really helpful. |
…ction. (#110) This PR adds documentation for calling SQLManager.CreateSchemas when using the officially supported SQLManager. Additional notes: - added note about using sqlx - added note about adding parseTime=true to the MySQL connection string and a link to the driver for more options This addresses issue #100 Signed-off-by: cabrel <cabrel@zerklabs.com>
When I use the manager to interface with sql, the required tables are not getting created.
db, err := sqlx.Open("mysql", "tx81:@tcp(127.0.0.1:3306)/policies")
......
err=db.Ping()
if err == nil {
fmt.Printf("Database is up")
}
The error is printed as "Table 'policies.ladon_policy' doesn't exist".
The text was updated successfully, but these errors were encountered: