SQLite的連接字符串


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 單位是字節


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM