This project is a forked version of Govert's SQLite for Excel. The main difference is that the code has been refactored to uses classes as opposed to the standard modules that the original project utilized. The original code was stored in two modules: Sqlite3 and Sqlite3Demo. I've since updated these files to the class modules cSqlite3 and cSqlite3Demo respectively. I've also added an ISqlite3 interface which cSqlite3 implements. My code also removed unnecessary conditional compilation from the codebase.
This code may not be compatible with 32-bit versions of Office. Govert also noted that removing code related to conditional compilation may affect versions of Excel prior to 2010 (i.e. 2007 or earlier)
If either of those are issues for you, I would recommend using the code in Govert's original project.
Some updates I'm considering in the future include moving certain methods around and making certain methods private to assist in abstraction for the respective objects. Other potential updates may include writing code to make working with the default database easier. And perhaps creating an ORM that would make working with the database easier. The internal design of the original API is a bit complicated. So it will take some time for me to familiarize myself with it.
This is sample code taken from the mMain module which is included in the Excel workbook:
Sub Main()
Dim sqlite As ISqlite3
Dim demo As cSqlite3Demo
Set sqlite = New cSqlite3
Set demo = New cSqlite3Demo
demo.init sqlite
demo.AllTests
End Sub
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。