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

Add "Info" view #49

Merged
merged 3 commits into from
Dec 14, 2018
Merged

Add "Info" view #49

merged 3 commits into from
Dec 14, 2018

Conversation

ScottWales
Copy link
Contributor

The "Info" view provides a number of useful bits of metadata that are handy to know but unlikely to be searched for. This is just a plain view onto the Metadata table.

Use like:

import clef.db
import clef.model as cm

clef.db.connect()
s = clef.db.Session()

r = (s.query(cm.Path.path.label('path'), 
             cm.Info)
     .join(cm.Info)
     .first())
    
print(r.path, r.Info.title, r.Info.contact)

See #37

@ScottWales ScottWales merged commit 74d92aa into master Dec 14, 2018
@paolap paolap deleted the info branch August 19, 2019 02:44
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

Successfully merging this pull request may close these issues.

1 participant