-
-
-
Basic
Data Source=c:\mydb.db;Version=3;
-
Version 2 is not supported by this class library.
SQLite -
In-Memory Database
An SQLite database is normally stored on disk but the database can also be stored in memory. Read more about SQLite in-memory databases here.
Data Source=:memory:;Version=3;New=True;
SQLite -
Using UTF16
Data Source=c:\mydb.db;Version=3;UseUTF16Encoding=True;
SQLite -
With password
Data Source=c:\mydb.db;Version=3;Password=myPassword;
SQLite -
Using the pre 3.3x database format
Data Source=c:\mydb.db;Version=3;Legacy Format=True;
SQLite -
With connection pooling
Connection pooling is not enabled by default. Use the following parameters to control the connection pooling mechanism.
Data Source=c:\mydb.db;Version=3;Pooling=True;Max Pool Size=100;
SQLite -
Read only connection
Data Source=c:\mydb.db;Version=3;Read Only=True;
SQLite -
Using DateTime.Ticks as datetime format
Data Source=c:\mydb.db;Version=3;DateTimeFormat=Ticks;
The default value is ISO8601 which activates the use of the ISO8601 datetime formatSQLite -
Store GUID as text
Normally, GUIDs are stored in a binary format. Use this connection string to store GUIDs as text.
Data Source=c:\mydb.db;Version=3;BinaryGUID=False;
Note that storing GUIDs as text uses more space in the database.SQLite -
Specify cache size
Data Source=c:\mydb.db;Version=3;Cache Size=2000;
The Cache Size value measured in bytesSQLite -
Specify page size
Data Source=c:\mydb.db;Version=3;Page Size=1024;
The Page Size value measured in bytesSQLite -
Disable enlistment in distributed transactions
Data Source=c:\mydb.db;Version=3;Enlist=N;
SQLite -
Disable create database behaviour
If the database file doesn‘t exist, the default behaviour is to create a new file. Use the following parameter to raise an error instead of creating a new database file.
Data Source=c:\mydb.db;Version=3;FailIfMissing=True;
SQLite -
Limit the size of database
Data Source=c:\mydb.db;Version=3;Max Page Count=5000;
The Max Page Count is measured in pages. This parameter limits the maximum number of pages of the database.SQLite -
Disable the Journal File
This one disables the rollback journal entirely.
Data Source=c:\mydb.db;Version=3;Journal Mode=Off;
SQLite -
Persist the Journal File
This one blanks and leaves the journal file on disk after a commit. Default behaviour is to delete the Journal File after each commit.
Data Source=c:\mydb.db;Version=3;Journal Mode=Persist;
SQLite -
Controling file flushing
Data Source=c:\mydb.db;Version=3;Synchronous=Full;
Full specifies a full flush to take action after each write. Normal is the default value. Off means that the underlying OS flushes I/O‘s.SQLite
? Problems connecting? Get answer in the SQLite Q & A forum →
-
-
Finisar.SQLite ADO.NET Data Provider
-
Standard
Data Source=c:\mydb.db;Version=3;
The "Version" key can take value "2" for SQLite 2.x (default) or value "3" for SQLite 3.xSQLite -
SQLite Version 2.X
Data Source=c:\mydb.db;Version=2;
SQLite -
Create a new database
Data Source=c:\mydb.db;Version=3;New=True;
SQLite -
Using compression
Data Source=c:\mydb.db;Version=3;Compress=True;
SQLite -
Specifying Cache Size
The Cache Size value represents the amount of data pages that are held in memory. Try increase this value for speed improvements but don‘t forget to keep track of the applications memory usage.
Data Source=c:\mydb.db;Version=3;Cache Size=3000;
SQLite -
UTF 8
Data Source=c:\mydb.db;Version=3;UTF8Encoding=True;
SQLite -
UTF 16
Data Source=c:\mydb.db;Version=3;UTF16Encoding=True;
-
SQLite connection strings
时间: 2024-10-22 21:38:53
SQLite connection strings的相关文章
JDBC Connection Strings for Popular RDBMS
Connecting to an RDBMS The following code snippet illustrates how the connection parameters are used to retrieve a database connection. 1 try{ 2 Class.forName("com.mysql.jdbc.Driver").newInstance(); //using MySQL JDBC Driver 3 String url
Windows Phone本地数据库(SQLCE):9、Connection Strings(翻译) (转)
这是“windows phone mango本地数据库(sqlce)”系列短片文章的第八篇. 为了让你开始在Windows Phone Mango中使用数据库,这一系列短片文章将覆盖所有你需要知道的知识点.我将谈谈在windows phone mango本地数据库中使用Connection Strings的问题. 1.ConnectionStrings是什么 在我们实际开始使用一个数据库之前,我们需要制定一个连接字符串,它告诉应用程序怎么连接数据库.一个连接字符串可以被用来做数据库的配置值.在连
[转】[tip] localhost vs. (local) in SQL Server connection strings
主要区别在于连接协议不同,前者(localhost)使用TCP协议,后者("(local)")使用NamedPipe协议. Sample code with SQL Server connection strings often use localhost and (local) interchangeably. They're different. Server=(local);Database=DotNetNuke;Trusted_Connection=TrueUses named
Adaptive Server Enterprise ODBC driver connection strings
Adaptive Server Enterprise 15.0 Driver={Adaptive Server Enterprise};app=myAppName;server=myServerAddress;port=myPortnumber;db=myDataBase;uid=myUsername;pwd=myPassword; Standard Sybase System 12 Enterprise Open Client Driver={SYBASE ASE ODBC Driver};S
通过代码来操作SQLite的示例
Getting started with SQLite in C# http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/ C#与SQLite的操作介绍 下载 http://www.cnblogs.com/hanhualangzi/archive/2012/02/03/2337584.html 可以设置密码 How to create and connect to an S
delphi Sqlite
Delphi中SQLite如何读写二进制字段(Blob类型) 在Delphi中,有大量的组件可以操作SQLite数据库,如UniDAC就是其中一个比较优秀的,当然还有ASQLite3Components,也有SQLite3版的ODBC驱动,可直接用ADO操作.本文简要说明SynopseSQLite3读写二进制字段,先说下SynopseSQLite3的优点,静态编译集成SQLite3引擎,不需要额外的DLL支持,支持SQLite3加密,支持JSON表,支持网络版的SQLite3.支持线程安全保护.
java sqlite配置和自定义函数
资源 jetty Jetty Downloads地址 sqlite sqlite JDBC Driver 地址:bitbucket代码托管 和 Github代码托管 jetty配置sqlite 在jetty里的配置(工程MWeb为例) /MWeb/WebContent/WEB-INF/jetty-web.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE Configure PUBLIC &q
SQLite剖析之C/C++接口
前言 SQLite3是SQLite一个全新的版本,它虽然是在SQLite2的代码基础之上开发的,但是使用了和之前的版本不兼容的数据库格式和API.SQLite3是为了满足以下的需求而开发的: * 支持UTF-16编码 * 用户自定义的文本比较方法 * 可以对BLOBs字段建立索引 由于对于C语言应该用什么数据类型来存放UTF-16编码的字符串并没有一致的规范,因此SQLite使用了普通的void*类型来指向UTF-16编码的字符串. 客户端使用过程中可以把void*映射成适合他们的系统的
Win10 UWP 开发系列:支持异步的SQLite
上篇文章已经实现了在UWP中使用SQLite作为本地存储,作为移动端的程序,及时响应用户的操作是提高用户体验的重要途径,因此UWP的很多api都是异步的.那么如何使SQLite支持异步呢? 参考SQLite.Net-PCL的github页面:https://github.com/oysteinkrog/SQLite.Net-PCL 可以看到SQLite.Net-PCL是支持异步的,在创建数据库链接的时候,可以创建同步的SQLiteConnection,也可以创建异步的SQliteAsyncCon