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

Support read-only Views as models #26

Closed
Jeff-Lewis opened this issue Feb 10, 2015 · 6 comments
Closed

Support read-only Views as models #26

Jeff-Lewis opened this issue Feb 10, 2015 · 6 comments
Labels

Comments

@Jeff-Lewis
Copy link

Does LB plan to support read-only views in MsSQL where there might not be a primary key?

Integrating existing 3rd party systems into the SL micro-services architecture is very valuable. Currently, I assume we could add (hack) new wrapper views with a fake Primary Keys which does something like select someKey,* from view in order to comply.

@raymondfeng What are you thoughts?

@raymondfeng
Copy link
Contributor

Interesting use case. If it happens, some of the methods won't be allowed, such as findById. Only find, findOne and count are fine. I assume it should be functional today if you supply an explicit order property for the filter arg on find.

@OwenBrotherwood
Copy link

So far, I have find and count working on a Read-Only table (not view). I have to check if the discover data model (via arc) actually defined a Primary Key.

Please note that the order property is necessary at least for limit:
#40

I created issue 40 before reading this seemingly unrelated issue.

@OwenBrotherwood
Copy link

As @raymondfeng noted: Interesting Use Case.
Do we define the Use Case as one has to create code that can interact with a 3rd Party Database Table/View and the use of http://docs.strongloop.com/display/public/LB/Discovering+models+from+relational+databases ?
There could be several gotcha's that one may need to be aware of.
FYI
My next task is to discover models from relation databases where the tables are related.

@ganipadela
Copy link

Any update on this ?

@stale stale bot added the stale label Aug 22, 2017
@stale
Copy link

stale bot commented Aug 22, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this as completed Sep 5, 2017
@stale
Copy link

stale bot commented Sep 5, 2017

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants