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
package main import ( "fmt" "time" _ "github.com/mattn/go-sqlite3" "github.com/cxr29/huge" _ "github.com/cxr29/huge/query" "github.com/cxr29/log" ) type User struct { Id int64 FirstName string LastName string Group string } func main() { n := &User{Id:1,FirstName:"aaa",LastName:"bbb",Group:"{bj:100}", } h, err := huge.Open("sqlite3", "user.db") log.ErrPanic(err) // CRUD row r, err := h.Create(n) log.ErrPanic(err) fmt.Println(r.(bool), n.Id, n.FirstName) }
The text was updated successfully, but these errors were encountered:
auto create table:
createTableSQL := huge.CreateTable(n, query.SQLiteStarter, false, true) fmt.Println(createTableSQL) _, err = h.Querier.Exec(createTableSQL) log.ErrPanic(err)
Sorry, something went wrong.
sqlite driverName fixed:
createTableSQL := huge.CreateTable(n, h.Starter, false, true) fmt.Println(createTableSQL) _, err = h.Querier.Exec(createTableSQL) log.ErrPanic(err)
No branches or pull requests
The text was updated successfully, but these errors were encountered: