-
Notifications
You must be signed in to change notification settings - Fork 209
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
Postgres and Gorm struct tags / DB columns and indexes definition #209
Comments
Authboss makes no presumptions about your database. It only requires you to implement the storers as required and persist that data however you like. You may be saving it to a file serializing with JSON, or using google cloud storage. Therefore I don't think this kind of documentation belongs in Authboss or it's sample as we'd have to be committed to having all databases have some documentation which isn't feasible. I think it's better to simply add documentation surrounding what a schema might look like (database agnostic) with the list of all the columns/tables and types involved. I'm specifically (and unjustly and unfairly) completely against any Gorm related documentation as I'm the creator of https://github.com/volatiletech/sqlboiler and I don't want to proliferate gorm anymore than it already has been, it's not a good solution to databases in Go and it performs extremely poorly as well (see benchmarks at bottom of sqlboiler readme). |
sqlboiler is way better than GORM is so many ways IMHO. @aarondl I wonder if its worth adding a formal drivers package, with sqlboiler as the default. |
I'm not opposed to this. It was originally intended to go this way anyway. |
@aarondl |
Issue opened for the creation of a wiki page that summarizes the doubts and problems for newbies (#210).
I'm using authboss with Gorm and Postgresql.
I think we miss detailed instructions on how to set up DB columns and indexes.
Starting simply, what do you think about:
And what about
remember
table?The text was updated successfully, but these errors were encountered: