Connect to SQLite3 server using PyODBC, Python

后端 未结 1 1755
醉话见心
醉话见心 2021-01-05 22:42

I\'m trying to test a class that loads data from an SQL server given a query. To do this, I was instructed to use sqlite3. Now, the problem is that while the cl

相关标签:
1条回答
  • 2021-01-05 23:10

    Solved the problem! Downloaded an ODBC driver for SQLite from http://www.ch-werner.de/sqliteodbc/, and defined the connection string such as

    "DRIVER={SQLite3 ODBC Driver};SERVER=localhost;DATABASE=test.db;Trusted_connection=yes"
    

    And it worked, hope this helps people!

    0 讨论(0)
提交回复
热议问题