SQLite does not need to be installed to use.SQLite is not that System.Data.SQLite.DLL temporarily created the database engine?1. Create a new WinForm project with reference to System.Data.SQLite.DLL. The interface is as follows1.1
1, the database performance1.1 Bulk transaction inserts for improved data insertion performanceBecause SQLite is the default every time the insert is a transaction, you need to read and write to the file, then reduce the number of transactions can
Never imagined that the SQLite module had a problem in multithreading and could only be used by the thread that created the SQLite connection. Other Threads could not be used at all! Otherwise, an error is reported, which is disgusting. Now it seems
SQLite architecture:
SQLite is composed of interfaces, compilers, virtual machines, and backend servers.Program(Back end.
Two other architecture diagrams are relatively simple:
Interface ):
It is composed of SQLite C APIs.
1. MOBILE/data/ApplicationsProgramCreate a database under the package name/directory
If the size of the created database is small, you can use the sqliteopenhelper class that comes with Android to directly generate the database on the mobile phone
If you need to perform full-text search in it, it is also possible. Because SQLite supports the FTS table
Here, fts3 is actually an extension module of SQLite. It is a virtual table module that allows users to perform full-text retrieval.
The
Development experience.
The first is to obtain images from the network and read the images from the network in the form of nsdata to the localCodeIt's easy. There are only two sentences.
Nsstring * url = @ "http://www.163.com/a.jpg"; nsdata *
This article from http://blog.csdn.net/hellogv/, reference must indicate the source!
In the previous lecture on Android, SQLite reads data by PAGE and only displays data in text boxes. This time, we will go deeper and implement and encapsulate an
[Disclaimer: All Rights Reserved. You are welcome to reprint it. Do not use it for commercial purposes. Contact Email: feixiaoxing @ 163.com]
SQLite has never been heard of before, but it has never been used. Today, we downloaded the source code
SQLite is a small open-source database mainly used on embedded mobile devices.1. Download The sqlite3 package
You can go to the official website of SQLite to download, use the SQLite version of a variety of systems, for: http://www.sqlite.org/Ii.
The previous term was used as a project (Embedded Linux). Because a large amount of data needs to be stored, it takes up to 30 days. It was originally intended to be saved to the file and re-parsed every time the application was started. However,
Thread:
Many versions of SQLite support multithreading.
Shared cache model:
Allows multiple connections in a process to use a common page cache. There are many cases for Embedded servers.
Thread → server → con → page cache → database.
In the shared
SQLite:
The main features of lightweight database SQLite: 1. support events, no configuration, no installation, no administrator; 2. Support for most sql92;
3. A complete database is saved as a file on the disk. The same database file can be used
Original Works are allowed to be reprinted. During reprinting, be sure to indicate the source of the article: Ghost. Otherwise, legal liability will be held.
1. Use adb.exe to find a running device (at least one simulator must be enabled)
E: \
StatementYou are welcome to repost this article, but please respect the author's Labor achievements. repost this article and keep the statement in this box. Thank you.Article Source: http://blog.csdn.net/iukey
If you want to manipulate a
SQLite common functions:
1. Open the database:Note: To open a database, the file name does not have to exist. If the file does not exist, SQLite will be automatically created. The first parameter refers to the file name, and the second parameter is
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