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

possible to use VIEWs as datasource #115

Open
MichelTaal opened this issue Mar 9, 2015 · 2 comments
Open

possible to use VIEWs as datasource #115

MichelTaal opened this issue Mar 9, 2015 · 2 comments

Comments

@MichelTaal
Copy link

I'm using the FCModel in my new project, everything working well so far. I have a few VIEW in my sqlite database that I would like to access Model like the regular tables. Is this possible?

@marcoarment
Copy link
Owner

Honestly, I have no idea. I've never used views in SQLite and have no idea how they behave.

@mirion
Copy link

mirion commented Jun 4, 2015

Actually this is trivial. In order to use view you have just to solve the problem of the primary key.
I needed this feature so I implemented it, you can find it here: https://github.com/mirion/FCModel/tree/mirion_dev/views_file_support

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

3 participants