Skip to content
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

how to override col_spec #3

Closed
fredzannarbor opened this issue Sep 27, 2021 · 1 comment
Closed

how to override col_spec #3

fredzannarbor opened this issue Sep 27, 2021 · 1 comment

Comments

@fredzannarbor
Copy link

Hi,

I need to add some more columns to my USERS table and be able to query them. Is there a way that I can override col_spec without modifying your code?

col_spec='id INTEGER PRIMARY KEY, username UNIQUE ON CONFLICT REPLACE, password, su INTEGER',

@asehmi
Copy link
Owner

asehmi commented Oct 6, 2021

I haven't implemented that. This code is supposed to be taken as-is and modified to suit your needs. For easier extensibility, I'd suggest you use the AIRTABLE provider. Having said that, the table creation code is really all you need to touch in the SQLITE provider, perhaps adding a [roles] column. If your needs are getting beyond this, then you need an identity solution, not a login auth solution, which is what this is. You can also make a few little changes so the success login token is returned with the roles data. HTH.

@asehmi asehmi closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants