Showing posts with label Free Local Database. Show all posts
Showing posts with label Free Local Database. Show all posts

2011/02/08

SQLite 3.7.5.0 Library (정적/동적) for C++ Builder and Visual C++



3.7.5 버전을 컴파일 하려면 몇 가지 신경을 써야 했다.


3..7.5 버전에서 ICU Unicode 모듈이 추가 되어서 라이브러리를 만들 때 해당 모듈을 포함해 주거나 기능을 비활성화 해야 한다.






이번 소스에는 fts1 과 fts2 와 관련된 소스가 포함되어 있어서 이 두가지 기능을 비활성화 해야 하는데 그러려면 아래 Preprocessor 를 선언해 주어야 한다.







SQLITE_ENABLE_BROKEN_FTS1=1


SQLITE_ENABLE_BROKEN_FTS2=1







C++ Builder 의 경우 ICU Unicode 모듈을 함께 컴파일 할 수 없어서(본인의 경우) ICU 관련 기능을 비활성화 하였다.






#undef SQLITE_ENABLE_ICU






Visual C++ 의 경우 ICU 사이트에서 ICU4C 모듈을 다운 받아 포함되어 있는 unicode 관련 파일을 프로젝트에 포함시켜서 컴파일 하였다.






이전 버전과 설정이 좀 달라서 생성된 라이브러리에 대해서 간단하게 테스트해 보니 정상 동작을 하였다. 










2010/07/22

SQLite 3.7.0 Released!!




모처럼만에 SQLite 가 업데이트 되었다. 이번에 업데이트를 진행하면서 부터인지 웹페이지도 분위기도 로고도 좀 바뀌었다.



SQLite 3.7.0 버전에서 바뀐 사항.


  • Added support for write-ahead logging.

  • Query planner enhancement - automatic transient indices are created when doing so reduces the estimated query time.

  • Query planner enhancement - the ORDER BY becomes a no-op if the query also contains a GROUP BY clause that forces the correct output order.

  • Add the SQLITE_DBSTATUS_CACHE_USED verb for sqlite3_db_status().

  • The logical database size is now stored in the database header so that bytes can be appended to the end of the database file without corrupting it and so that SQLite will work correctly on systems that lack support for ftruncate().