Showing posts with label SQLite3. Show all posts
Showing posts with label SQLite3. Show all posts
2012/09/05
SQLite Release 3.7.14
SQLite Release 3.7.14 On 2012-09-03 (3.7.14)
SQLite 3.7.14 Release Note<
Original Post : http://neodreamer-dev.tistory.com/679
- Drop built-in support for OS/2. If you need to upgrade an OS/2 application to use this or a later version of SQLite, then add an application-defined VFS using the sqlite3_vfs_register() interface. The code removed in this release can serve as a baseline for the application-defined VFS.
- Ensure that floating point values are preserved exactly when reconstructing a database from the output of the ".dump" command of the command-line shell.
- Added the sqlite3_close_v2() interface.
- Updated the command-line shell so that it can be built using SQLITE_OMIT_FLOATING_POINT and SQLITE_OMIT_AUTOINIT.
- Improvements to the windows makefiles and build processes.
- Enhancements to PRAGMA integrity_check and PRAGMA quick_check so that they can optionally check just a single attached database instead of all attached databases.
- Enhancements to WAL mode processing that ensure that at least one valid read-mark is available at all times, so that read-only processes can always read the database.
- Performance enhancements in the sorter used by ORDER BY and CREATE INDEX.
- Added the SQLITE_DISABLE_FTS4_DEFERRED compile-time option.
- Better handling of aggregate queries where the aggregate functions are contained within subqueries.
- Enhance the query planner so that it will try to use a covering index on queries that make use of or optimization.
- SQLITE_SOURCE_ID: "2012-09-03 15:42:36 c0d89d4a9752922f9e367362366efde4f1b06f2a"
- SHA1 for sqlite3.c: 5fdf596b29bb426001f28b488ff356ae14d5a5a6
SQLite 3.7.14 Release Note<
Original Post : http://neodreamer-dev.tistory.com/679
Labels:
File Database
,
Free Database
,
Local Database
,
SQLite
,
SQLite3
,
TistoryOldPost
2012/05/16
SQLite Release 3.7.12
Release 3.7.12 On 2012 May 14
SQLite 3 Homepage
SQLite 3 Download Page&
Original Post : http://neodreamer-dev.tistory.com/652
- Add the SQLITE_DBSTATUS_CACHE_WRITE option for sqlite3_db_status().
- Optimize the typeof() and length() SQL functions so that they avoid unnecessary reading of database content from disk.
- Add the FTS4 "merge" command, the FTS4 "automerge" command, and the FTS4 "integrity-check" command.
- Report the name of specific CHECK constraints that fail.
- In the command-line shell, use popen() instead of fopen() if the first character of the argument to the ".output" command is "|".
- Make use of OVERLAPPED in the windows VFS to avoid some system calls and thereby obtain a performance improvement.
- More aggressive optimization of the AND operator when one side or the other is always false.
- Improved performance of queries with many OR-connected terms in the WHERE clause that can all be indexed.
- Add the SQLITE_RTREE_INT_ONLY compile-time option to force the R*Tree Extension Module to use integer instead of floating point values for both storage and computation.
- Enhance the PRAGMA integrity_check command to use much less memory when processing multi-gigabyte databases.
- New interfaces added to the test_quota.c add-on module.
- Added the ".trace" dot-command to the command-line shell.
- Allow virtual table constructors to be invoked recursively.
- Improved optimization of ORDER BY clauses on compound queries.
- Improved optimization of aggregate subqueries contained within an aggregate query.
- Bug fix: Fix the RELEASE command so that it does not cancel pending queries. This repairs a problem introduced in 3.7.11.
- Bug fix: Do not discard the DISTINCT as superfluous unless a subset of the result set is subject to a UNIQUE constraint and it none of the columns in that subset can be NULL. Ticket 385a5b56b9.
- Bug fix: Do not optimize away an ORDER BY clause that has the same terms as a UNIQUE index unless those terms are also NOT NULL. Ticket 2a5629202f.
- SQLITE_SOURCE_ID: "2012-05-14 01:41:23 8654aa9540fe9fd210899d83d17f3f407096c004"
- SHA1 for sqlite3.c: 57e2104a0f7b3f528e7f6b7a8e553e2357ccd2e1
SQLite 3 Homepage
SQLite 3 Download Page&
Original Post : http://neodreamer-dev.tistory.com/652
Labels:
File Database
,
Free Database
,
Local Database
,
SQLite
,
SQLite3
,
TistoryOldPost
2011/10/12
C++ Builder 를 위한 SQLite3 라이브러리 만들기
C++ Builder를 위한 SQLite3 라이브러리 생성은 그리 어렵지 않다. 이전에 올린 글에서도 언급을 하였는데 amalgamation 소스를 이용하면 작업이 쉽다.
2011/10/12 - [Dev Story] - SQLite3 dll 과 정적 라이브러리(Static Library) 만들기
동적 라이브러리는 SQLite 사이트에서 배포하는 DLL을 사용하면 되며 필요한 .lib 파일은 아래 명령을 통해서 만들 수 있다.
정적 라이브러리의 경우 amalgamation 소스를 이용하여 만든다.
먼저 Static Library 프로젝트를 만든다.

적당한 이름으로 프로젝트를 정리하고 프로젝트에 amalgamation 소스파일 3개(sqlite3.c, sqlite3.h, sqlite3ext.h)을 추가 한다.
그리고 프로젝트의 Conditional defines의 Base에 아래와 같이 3개의 Conditional을 추가한다.

이제 빌드만 하면 정적 라이브러리를 얻을 수 있다.
기존의 전체 소스로 컴파일 하는 것에 비하면 상당히 단순화 된 작업이다.
이렇게 만들어진 라이브러리에 대해서는 이전에 올린 테스트 코드에서 이상없이 동작을 하였다. <
Original Post : http://neodreamer-dev.tistory.com/592
2011/10/12 - [Dev Story] - SQLite3 dll 과 정적 라이브러리(Static Library) 만들기
동적 라이브러리는 SQLite 사이트에서 배포하는 DLL을 사용하면 되며 필요한 .lib 파일은 아래 명령을 통해서 만들 수 있다.
implib -a sqlite3.lib sqlite3.dll
정적 라이브러리의 경우 amalgamation 소스를 이용하여 만든다.
먼저 Static Library 프로젝트를 만든다.
적당한 이름으로 프로젝트를 정리하고 프로젝트에 amalgamation 소스파일 3개(sqlite3.c, sqlite3.h, sqlite3ext.h)을 추가 한다.
그리고 프로젝트의 Conditional defines의 Base에 아래와 같이 3개의 Conditional을 추가한다.
SQLITE_ENABLE_FTS3
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA
이제 빌드만 하면 정적 라이브러리를 얻을 수 있다.
기존의 전체 소스로 컴파일 하는 것에 비하면 상당히 단순화 된 작업이다.
이렇게 만들어진 라이브러리에 대해서는 이전에 올린 테스트 코드에서 이상없이 동작을 하였다. <
Original Post : http://neodreamer-dev.tistory.com/592
Labels:
SQLite
,
SQLite library
,
SQLite3
,
SQLite3 Static Library
,
TistoryOldPost
SQLite3 dll 과 정적 라이브러리(Static Library) 만들기
예전 글에서는 Dll 은 amalgamation 소스를 이용하고 정적 라이브러리는 전체 소스를 가지고 만드는 방법을 기록하였는데 이번에는 두가지 모두 amalgamation 소스를 이용하는 방법으로 하여 보았다. 이 방법을 이용할 경우 작업이 무척 간단하고 ICU 모듈 없이도 라이브러리를 만들 수 있다.
일단 Dll 을 만드는 방법은 예전 글(2009/12/09 - [Dev Story/Tips] - SQLite3.dll 만들기 (Win32 & x64 with VC++ 2005))에도 설명을 하였지만 다시금 간단하게 요약을 하면 Win32 Application 을 "SQLite3"란 이름으로 만들고 Wizard 화면에서 아래와 같이 Type을 DLL, Additional options에서 Empty project를 체크하고 프로젝트를 만든다.

프로젝트에 sqlite-amalgamation-xxxxxxxx.zip 파일에 있는 sqlite3.c, sqlite3.h, sqlite3ext.h 파일을 프로젝트에 포함시켜 준다. 그리고 Preprocessor Definitions에 아래 세가지를 입력한다.
SQLITE_ENABLE_FTS3
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA


마지막으로 sqlite-dll-win32-x86-
xxxxxxxx.zip 파일에 포함되어 있는 sqlite3.def 파일을 프로젝트에 속성에 추가 시켜준다.

이제 빌드만 해 주면 .dll 파일과 .lib 파일을 얻을 수 있다. 필요에 따라 x64 platform 을 추가 구성하면 64비트용 파일들을 얻을 수 있다.
다음으로 정적 라이브러리를 만드는 방법이다. 기존 방법과는 다르고 DLL 파일을 만드는 것과 유사하다.
우선 Win32 Application을 SQLite3Static 이란 이름으로 type을 Static library, Additional options에서 Precompiled header를 선택 해제하고 프로젝트를 생성한다.

DLL 만드는 경우와 같이 프로젝트에 sqlite-amalgamation-xxxxxxxx.zip 파일에 있는 sqlite3.c, sqlite3.h, sqlite3ext.h 파일을 프로젝트에 포함시켜 준다. 그리고 Preprocessor Definitions에 아래 세가지를 입력한다.
SQLITE_ENABLE_FTS3
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA

이제 빌드만 하면 정적 라이브러리를 만들 수 있다. 역시 x64 platform 을 추가 구성하면 64비트용 파일들을 얻을 수 있다. 그리고 각각의
x64 platform 과 Configuration에 맞게 정적 라이브러리 이름을 지정하면 쉽게 구분할 수 있다.
본인의 경우 아래와 같이 이름을 지정하였다.
x86용
Debug: SQLite3Static32D.lib
Release: SQLite3Static32.lib
x64용
Debug: SQLite3Static64D.lib
Release: SQLite3Static64.lib
위의 작업은 Visual Studio 2005에서 작업을 하였으며 정적 라이브러리의 경우 Visual Studio 2010 버전으로 테스트해
Original Post : http://neodreamer-dev.tistory.com/591
일단 Dll 을 만드는 방법은 예전 글(2009/12/09 - [Dev Story/Tips] - SQLite3.dll 만들기 (Win32 & x64 with VC++ 2005))에도 설명을 하였지만 다시금 간단하게 요약을 하면 Win32 Application 을 "SQLite3"란 이름으로 만들고 Wizard 화면에서 아래와 같이 Type을 DLL, Additional options에서 Empty project를 체크하고 프로젝트를 만든다.
SQLite3.dll 프로젝트 속성
프로젝트에 sqlite-amalgamation-xxxxxxxx.zip 파일에 있는 sqlite3.c, sqlite3.h, sqlite3ext.h 파일을 프로젝트에 포함시켜 준다. 그리고 Preprocessor Definitions에 아래 세가지를 입력한다.
SQLITE_ENABLE_FTS3
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA
마지막으로 sqlite-dll-win32-x86-
xxxxxxxx.zip 파일에 포함되어 있는 sqlite3.def 파일을 프로젝트에 속성에 추가 시켜준다.
sqlite3.def 지정 화면
이제 빌드만 해 주면 .dll 파일과 .lib 파일을 얻을 수 있다. 필요에 따라 x64 platform 을 추가 구성하면 64비트용 파일들을 얻을 수 있다.
다음으로 정적 라이브러리를 만드는 방법이다. 기존 방법과는 다르고 DLL 파일을 만드는 것과 유사하다.
우선 Win32 Application을 SQLite3Static 이란 이름으로 type을 Static library, Additional options에서 Precompiled header를 선택 해제하고 프로젝트를 생성한다.
DLL 만드는 경우와 같이 프로젝트에 sqlite-amalgamation-xxxxxxxx.zip 파일에 있는 sqlite3.c, sqlite3.h, sqlite3ext.h 파일을 프로젝트에 포함시켜 준다. 그리고 Preprocessor Definitions에 아래 세가지를 입력한다.
SQLITE_ENABLE_FTS3
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA
이제 빌드만 하면 정적 라이브러리를 만들 수 있다. 역시 x64 platform 을 추가 구성하면 64비트용 파일들을 얻을 수 있다. 그리고 각각의
x64 platform 과 Configuration에 맞게 정적 라이브러리 이름을 지정하면 쉽게 구분할 수 있다.
본인의 경우 아래와 같이 이름을 지정하였다.
x86용
Debug: SQLite3Static32D.lib
Release: SQLite3Static32.lib
x64용
Debug: SQLite3Static64D.lib
Release: SQLite3Static64.lib
위의 작업은 Visual Studio 2005에서 작업을 하였으며 정적 라이브러리의 경우 Visual Studio 2010 버전으로 테스트해
Original Post : http://neodreamer-dev.tistory.com/591
Labels:
SQLite
,
SQLite Dll
,
SQLite library
,
SQLite Static Library
,
SQLite3
,
TistoryOldPost
Subscribe to:
Posts
(
Atom
)