sqllite connectionstring setting
https://www.connectionstrings.com/sqlite/
SQLite.NET
Basic
Data Source=c:\mydb.db;Version=3;Version 2 is not supported by this class library.
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;Using UTF16
Data Source=c:\mydb.db;Version=3;UseUTF16Encoding=True;With password
Data Source=c:\mydb.db;Version=3;Password=myPassword;Using the pre 3.3x database format
Data Source=c:\mydb.db;Version=3;Legacy Format=True;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;Read only connection
Data Source=c:\mydb.db;Version=3;Read Only=True;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 format
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.
Specify cache size
Data Source=c:\mydb.db;Version=3;Cache Size=2000;The Cache Size value measured in bytes
Specify page size
Data Source=c:\mydb.db;Version=3;Page Size=1024;The Page Size value measured in bytes
Disable enlistment in distributed transactions
Data Source=c:\mydb.db;Version=3;Enlist=N;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;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.
Disable the Journal File
This one disables the rollback journal entirely.
Data Source=c:\mydb.db;Version=3;Journal Mode=Off;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;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.
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.x
SQLite Version 2.X
Data Source=c:\mydb.db;Version=2;Create a new database
Data Source=c:\mydb.db;Version=3;New=True;Using compression
Data Source=c:\mydb.db;Version=3;Compress=True;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;UTF 8
Data Source=c:\mydb.db;Version=3;UTF8Encoding=True;UTF 16
Data Source=c:\mydb.db;Version=3;UTF16Encoding=True;
SQLite3 ODBC Driver
Standard
DRIVER=SQLite3 ODBC Driver;Database=c:\mydb.db;LongNames=0;Timeout=1000;NoTXN=0;
SyncPragma=NORMAL;StepAPI=0;
.NET Framework Data Provider for ODBC
Use an ODBC driver from .NET
Driver={any odbc driver's name};OdbcKey1=someValue;OdbcKey2=someValue;See the respective ODBC driver's connection strings options. The .net OdbcConnection will just pass on the connection string to the specified ODBC driver. Read more here.
sqllite connectionstring setting的更多相关文章
- 基于SqlSugar的数据库访问处理的封装,支持.net FrameWork和.net core的项目调用
由于我们有时候需要在基于.net framework的项目上使用(如Winform端应用),有时候有需要在.net core的项目上使用(如.net core的WebAPI),那么我们把基于SQLSu ...
- 使用C#对SQLLite进行操作
1.数据库连接(常用连接方法,示例) 1). 添加引用: System.Data.SQLite.DLL .2). 打开或创建数据库文件: SQLiteConnection.CreateFile(fil ...
- 无需部署的轻量级数据库—SQLLite,使用Demo
当有程序需要保存轻量数据,而又烦躁序列化到本地的不便,轻量级数据库—SQLLite是一个很好的选择,只需引用System.Data.SQLite.DLL,无需部署数据库,便可像拥有数据库一样保存数据, ...
- SqlLite ---.net连接数据库
初识SqlLite ---.net连接数据库 SqlLite以小巧和嵌入式闻名,以前只是听说,现在终于忍不住要尝试下. 先下载ADO.NET2.0 Provider for SQLite,下载完后 ...
- SQLLite 简介
[1] SQLite,是一款轻型的数据库,是遵守ACID的关系型数据库管理系统,它的设计目标是嵌入式的,而且目前已经在很多嵌入式产品中使用了它,它占用资源非常的低,在嵌入式设备中,可能只需要几百K的内 ...
- sqllite小型数据库的使用
1.适用场景:免安装型数据库:数据量不大,本地化管理:不依赖其他第三方类库:2.具体使用方法:添加sqllite类库引用 数据库连接定义,数据库以文件形式存储在sqllitedb/solution.d ...
- 使用EFCore,手动创建SQLLite数据库
有时候我们需要在代码中动态生成一个sqllite数据库文件,可以按照以下代码完成, static void Main(string[] args) { MyContext context = new ...
- 初识SqlLite ---.net连接数据库
Sqlite 是一款轻量级的关系型数据库,以小巧和嵌入式闻名.以前只是听说,现在终于忍不住要尝试下.本文的初衷是为.net平台的使用者提供帮助. Sqlite有专门为VS2010开发的程序包,大家可以 ...
- [Umbraco] 自定义DataType中Data Editor Setting Type
上一篇介绍了在定义Document Type中的属性时用到的Data Type,当使用dropdown list如何调用外部数据源,可以根据提供的数据连接字符串,sql语句就能实现你想要显示的数据. ...
随机推荐
- 微信小程序~生命周期方法详解
生命周期是指一个小程序从创建到销毁的一系列过程 在小程序中 ,通过App()来注册一个小程序 ,通过Page()来注册一个页面 先来看一张小程序项目结构 从上图可以看出,根目录下面有包含了app.js ...
- 实用mysql数据库命令
连接:mysql -h主机地址 -u用户名 -p用户密码 (注:u与root可以不用加空格,其它也一样)断开:exit (回车) 创建授权:grant select on 数据库.* to 用户名@登 ...
- Python3中BeautifulSoup的使用方法
BeautifulSoup的使用 我们学习了正则表达式的相关用法,但是一旦正则写的有问题,可能得到的就不是我们想要的结果了,而且对于一个网页来说,都有一定的特殊的结构和层级关系,而且很多标签都有id或 ...
- Burp Suite的代理Brup Proxy的使用详解
Burp Proxy 是Burp Suite以用户驱动测试流程功能的核心,通过代理模式,可以让我们拦截.查看.修改所有在客户端和服务端之间传输的数据.
- 使用lua脚本在nginx上进行灰度流量转发
参考资料 idea+openresty+lua开发环境搭建 OpenResty最佳实践 灰度发布基于cookie分流 从请求中获取值 -- 从请求中获取请求头为 Sec-WebSocket-Proto ...
- 自定义mvc增删改查
对t_mvc_book表的增删改查 导入jar包 BaseDao package com.hmc.util; import java.lang.reflect.Field; import java.s ...
- RookeyFrame 线上 添加Model
线上添加好了模块,会在本地生成几个文件 类文件:Rookey.Frame.Web\Config\TempModel\Order_File.code DLL文件:Rookey.Frame.Web\bin ...
- 洛谷 P1102 A-B数对 题解
P1102 A-B 数对 题目描述 出题是一件痛苦的事情! 题目看多了也有审美疲劳,于是我舍弃了大家所熟悉的 A+B Problem,改用 A-B 了哈哈! 好吧,题目是这样的:给出一串数以及一个数字 ...
- 利用HTML和CSS设计一个静态的“小米商城官网首页”
一.小项目说明 这是个例行的小项目练习,主要利用html和css的基础知识,复刻一个缩减版的小米商城网页.包括[导航栏].[头部logo区,快捷键.搜索框].[网页主体].[网页尾部]几个部分.目前只 ...
- linux 最大TCP连接数限制
----------------------------------------------问题--------------------------------------------- 前几日碰到问 ...