Skip to content

How to open an existing local database #2

Description

@galders

Hello,

I would like to use my existing SQLite database. How can I use your library to open the existing local SQLite database (i will use it for a HTML5 type mobile app).

Thank you in advance. I don't know if this is the right place, but I had not found any other one.

I'm trying something like:

var db = SQLite({ shortName: 'mydatabase.db', defaultErrorHandler: fail, defaultDataHandler: pass });

db.select('mytable', '*');

Thanks again.

Activity

  1. jhubert commented on Sep 15, 2014

    @jhubert
    Owner

    Hi @galders,

    I'm sorry I just saw this notification. That should be how to do it. Is that not working for you? Were you able to solve this?

  2. fredflyer commented on Aug 9, 2015

    @fredflyer

    Hi,
    i'm trying to use the script, but it seems taht my file.db not opening as i have after a select a message saying "Oops. could not prepare statement (1 no such table: Pagecdv) (Code 5)"
    my html is in a directory www, and my file.db too...
    what can be the problem ?
    thank you for your help
    Fred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions