Quote:
Originally Posted by davidfor
Though maybe the starting point is to add something to calibre for the plugin to call. Passing in suggested names and the data type would help to get them created properly.
|
db.new_api.backend.create_custom_column()
The method is in db.backend.py, line 998 in current source. Reading the code, it throws an SQL exception if the lookup key is not unique. It throws VALUE_ERROR for some error conditions such as an invalid type or key. It modifies the custom column description table so that the column will appear next time calibre restarts.