GithubHelp home page GithubHelp logo

Comments (9)

chenyanming avatar chenyanming commented on June 6, 2024 1

Fix in 85dc26c * master origin/master Fix bug comments that have new lines can not be decode.

from calibredb.el.

akirak avatar akirak commented on June 6, 2024

I encountered the same error. It would be better to use emacsql-sqlite for accessing the sqlite database.

from calibredb.el.

chenyanming avatar chenyanming commented on June 6, 2024

I found the same issue, it is because some books' comments have new line charaters, the split-string function did not work. Sorry about that, I will fix them asap.

from calibredb.el.

chenyanming avatar chenyanming commented on June 6, 2024

I encountered the same error. It would be better to use emacsql-sqlite for accessing the sqlite database.

I checked emacssql-sqlite, it seems can not decode some tables of calibredb metadata.db, for example the name column in data table. Any other better solutions?
image

from calibredb.el.

akirak avatar akirak commented on June 6, 2024

I'm sorry for that. EmacsQL wasn't suitable for the purpose:

EmacSQL is not intended to interact with arbitrary databases. All text values must be stored as printed s-expressions.

magit/emacsql#30 (comment)

Rather than directly interacting with the database, why not use calibredb command to query the library? You can use the following command to get items in one's library in JSON:

calibredb list --for-machine [--with-library=DIR]

from calibredb.el.

akirak avatar akirak commented on June 6, 2024

It's already been fixed. Thanks.

Why don't you close this issue?

from calibredb.el.

yuchen-lea avatar yuchen-lea commented on June 6, 2024

Oh... I thought you could close the issue. Sorry for that.

from calibredb.el.

chenyanming avatar chenyanming commented on June 6, 2024

I'm sorry for that. EmacsQL wasn't suitable for the purpose:

EmacSQL is not intended to interact with arbitrary databases. All text values must be stored as printed s-expressions.

skeeto/emacsql#30 (comment)

Rather than directly interacting with the database, why not use calibredb command to query the library? You can use the following command to get items in one's library in JSON:

calibredb list --for-machine [--with-library=DIR]

Changing tocalibredb --list could be next TODO item.

from calibredb.el.

akirak avatar akirak commented on June 6, 2024

Changing tocalibredb --list could be next TODO item.

I don't think it's necessary. It's already working, and calibredb list doesn't produce sufficient information for the current features of this package. Thanks.

from calibredb.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.