Menu

Sqlite connection

Help
Mpume
2019-01-11
2019-01-11
  • Mpume

    Mpume - 2019-01-11

    I am trying to use Sqlite. I have placed the Sqlite JDBC driver in the classpath and in the configFile.txt I have the following entry:

    Database_Type="Sqlite"
    Database_Driver="org.sqlite.JDBC"
    Database_Protocol="jdbc:sqlite"
    Database_DSN="C:\path\to\my\database\databasefile.db"
    Database_User=""
    Database_Passwd=""
    Database_Catalog=""
    Database_SchemaPattern=""
    Database_TablePattern=""
    Database_ColumnPattern=""
    Database_TableType=""

    The console window does not bring back any of the meta data for the database. I cannot run any SQL queries against database. I would appreciate any points to getting Sqlite working.

     
    • arrah

      arrah - 2019-01-11

      Hi,
      Thanks for using osDQ. You should first run SQLLite form connection Dialog
      which is attached. If it is successful, then use the same parameters and
      Database_Type="OTHERS" as sqlLite is not pre-configured.

      Make sure the jdbc jar file for SQLLite is under lib/jdbc

      Make us know if you still face any problem.

      On Fri, Jan 11, 2019 at 3:20 PM Mpume msimanga@users.sourceforge.net
      wrote:

      I am trying to use Sqlite. I have placed the Sqlite JDBC driver in the
      classpath and in the configFile.txt I have the following entry:

      Database_Type="Sqlite"
      Database_Driver="org.sqlite.JDBC"
      Database_Protocol="jdbc:sqlite"
      Database_DSN="C:\path\to\my\database\databasefile.db"
      Database_User=""
      Database_Passwd=""
      Database_Catalog=""
      Database_SchemaPattern=""
      Database_TablePattern=""
      Database_ColumnPattern=""
      Database_TableType=""

      The console window does not bring back any of the meta data for the
      database. I cannot run any SQL queries against database. I would appreciate
      any points to getting Sqlite working.


      Sqlite connection
      https://sourceforge.net/p/dataquality/discussion/602692/thread/655529c6ef/?limit=25#83a9


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dataquality/discussion/602692/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      regards,
      Vivek Singh

      Author of "The Reverse Journey" from Frogbooks

       
      • Mpume

        Mpume - 2019-01-11

        Thanks for the prompt and helpful response. It worked using your suggested method.

        I also managed to get the configFile.txt to work by escaping the slashes. I am running on Windows 7. Config below worked (the \/ is back and forward slash not letter V):

        Database_Type="Sqlite"
        Database_Driver="org.sqlite.JDBC"
        Database_Protocol="jdbc:sqlite"
        Database_DSN="C:\/path\/to\/my\/database\/databasefile.db"
        Database_User=""
        Database_Passwd=""
        Database_Catalog=""
        Database_SchemaPattern=""
        Database_TablePattern=""
        Database_ColumnPattern=""
        Database_TableType="TABLE"

         

        Last edit: Mpume 2019-01-11

Log in to post a comment.