简体   繁体   English

如何从.Net读取第2版Sqlite数据库?

[英]How to read a Version 2 Sqlite database from .Net?

Seems that System.Data.SQLite supports only version 3. What to use to read version 2? 似乎System.Data.SQLite仅支持版本3.使用什么来读取版本2? I don't want to use the sqlite3.dll directly because it only supports 32 bit. 我不想直接使用sqlite3.dll ,因为它只支持32位。

From SQLite docs : 来自SQLite文档

Format 2 adds the ability of rows within the same table to have a varying number of columns, in order to support the ALTER TABLE ... ADD COLUMN functionality. 格式2添加了同一个表中的行的能力,以具有不同数量的列,以支持ALTER TABLE ... ADD COLUMN功能。 Support for reading and writing format 2 was added in SQLite version 3.1.3 on 2005-02-19. 在2005-02-19的SQLite版本3.1.3中添加了对读写格式2的支持。

Latest version of SQLite for .NET is actually here (not at phxsoftware.com anymore). 最新版本的SQLite for .NET实际上就在这里 (不再是phxsoftware.com了)。 They distribute x86 and x64 bit versions. 它们分发x86和x64位版本。 The latest release supports SQLite 3.7.7.1 so it should be able to read V2 file. 最新版本支持SQLite 3.7.7.1,因此它应该能够读取V2文件。 Take a look at this answer for some details. 看一下这个答案的一些细节。

Did you check out http://sqlite.phxsoftware.com/ ? 你看过http://sqlite.phxsoftware.com/了吗? Their latest version has a x64 ADO.NET provider for SQLite 3. 他们的最新版本为SQLite 3提供了x64 ADO.NET提供程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Xamarin Android中设置SQLite(SQLite.NET组件)数据库版本 - How to set SQLite(SQLite.NET component) database Version in Xamarin Android 如何使用.NET Core从本地SQLite文件读取? - How do you read from a local SQLite file with .NET Core? 如何从 SQLIte 读取表并将其存储在 .NET 中的 Microsoft SQL Server 中 - How to read tables from SQLIte and store it in Microsoft SQL Server in .NET 如何从 .NET 应用程序访问 android 应用程序的本地 sqlite 数据库 - How to access local sqlite database of android application from .NET application 从Sqlite数据库中读取存储为二进制文件的Guid - Read Guid stored as binary from Sqlite database 如何使用SQLite.NET从现有的sqlite数据库中获取表名列表? - How can I get a list of table names from an existing sqlite database using SQLite.NET? SQLite - 从SQLite数据库读取数据的最快方法? - SQLite - Fastest way to read Data from SQLite Database? 如何在 Blazor WASM 中读取/导入一个 Sqlite 数据库? - How to read/import a Sqlite database in Blazor WASM? 如何从.NET应用程序读取和写入Paradox 7.x数据库? - How to read and write to a Paradox 7.x database from .NET app? 如何从asp.net身份创建的数据库中读取数据 - how to read data from database created by asp.net identity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM