SQLite connection string

Source: Internet
Author: User
Tags connection pooling
SQLite connection string

Basic)
Data Source = filename; version = 3;
Using UTF16 (UTF-8 encoding)
Data Source = filename; version = 3; useutf16encoding = true;
With password (with password)
Data Source = filename; version = 3; Password = mypassword;
Using the pre 3.3x database format (using the database format before 3.3x)
Data Source = filename; version = 3; legacy format = true;
Read Only Connection)
Data Source = filename; version = 3; read only = true;
With Connection Pooling (set connection pool)
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 (The GUID is stored as text, which is binary by default)
Data Source = filename; version = 3; binaryguid = false;
More storage space is required if the guid is used as the text storage.
Specify cache size (specify the cache size)
Data Source = filename; version = 3; cache size = 2000;
The cache size is in bytes.
Specify page size (specify the page size)
Data Source = filename; version = 2; page size = 1024;
Page size in bytes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.