SQLite的連接字符串
Basic(基本的)
Data Source=filename;Version=3;
Using UTF16(使用UTF16編碼)
Data Source=filename;Version=3;UseUTF16Encoding=True;
With password(帶密碼的)
Data Source=filename;Version=3;Password=myPassword;
Using the pre 3.3x database format(使用3.3x前數據庫格式)
Data Source=filename;Version=3;Legacy Format=True;
Read only connection(只讀連接)
Data Source=filename;Version=3;Read Only=True;
With connection pooling(設置連接池)
Data Source=filename;Version=3;Pooling=False;Max Pool Size=100;
Using DateTime.Ticks as datetime format()
Data Source=filename;Version=3;DateTimeFormat=Ticks;
Store GUID as text(把Guid作為文本存儲,默認是Binary)
Data Source=filename;Version=3;BinaryGUID=False;
如果把Guid作為文本存儲需要更多的存儲空間
Specify cache size(指定Cache大小)
Data Source=filename;Version=3;Cache Size=2000;
Cache Size 單位是字節
Specify page size(指定頁大小)
Data Source=filename;Version=3;Page Size=1024;
Page Size 單位是字節