|
|
#1 |
|
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Oct 2009
Device: nook
|
Database Documentation
My goal is a single select statement that will retrieve values for specific columns (including some custom columns) for all the books in the library. Last edited by mfaine; 01-06-2011 at 03:14 PM. |
|
|
|
|
|
#2 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,511
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Nope, you have to read the schema, or the calibre source. custom column tables all fall into one or two very similar categories depending on the datatype.
You do know you can dump the entire schema at once, right?
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Oct 2009
Device: nook
|
Quote:
Thanks |
|
|
|
|
|
|
#4 |
|
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Oct 2009
Device: nook
|
I promise I'll stop asking questions (in this thread) about the database but I'm curious as to why author_sort is a field in books and sort is also a field in authors?
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,593
Karma: 549131
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (stanza/iBooks/QuickReader)
|
A combination of legacy and practicality.
The one in the books has always been there. The one in the authors table is newer, and is the default value applied to new books. However you can over-ride the value at the book level if you want to. This tends to be of most use in multiple author books where you want a particular author to be the primary sort key. That is one of the reasons the Edit Metadata dialog highlights the author-sort field in pink when the value on the books table is different to the value on the authors table. Just a hint that you should check that you want the book sorted by the value currently displayed. Last edited by itimpi; 01-07-2011 at 02:03 PM. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Documentation for Sigil | Valloric | Sigil | 15 | 11-12-2010 06:37 PM |
| Server Documentation? | Joe McPlumber | Calibre | 4 | 07-05-2010 11:34 PM |
| Technical Documentation | Gremlin | HanLin eBook | 4 | 07-16-2009 02:24 AM |
| Wiki documentation | mrdini | OpenInkpot | 1 | 10-14-2008 09:50 AM |
| More Detailed Documentation? | TedPark | Sony Reader Dev Corner | 3 | 06-10-2008 09:06 PM |