Skip to main content

SQLite là một C library!

SQLite nói một cách chính xác, là một C library, là một RDBMS không cần server process.

Theo SQLite homepage

SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. The source code for SQLite is in the public domain.
Theo Python docs
SQLite is a C library that provides a lightweight disk-based database that doesn’t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. It’s also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle.

The sqlite3 module was written by Gerhard Häring. It provides a SQL interface compliant with the DB-API 2.0 specification described by PEP 249.
Trên Ubuntu 12.04
~$ dpkg -s libsqlite3-0
Package: libsqlite3-0
Status: install ok installed
Multi-Arch: same
Priority: standard
Section: libs
Installed-Size: 770
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: sqlite3
Version: 3.7.9-2ubuntu1.1
Depends: libc6 (>= 2.14)
Pre-Depends: multiarch-support
Description: SQLite 3 shared library
 SQLite is a C library that implements an SQL database engine.
 Programs that link with the SQLite library can have SQL database
 access without running a separate RDBMS process.
Một số library khác cũng implement database engine như:
- BDB / HDB: phổ biết nhất khi dùng với OpenLDAP
- Tokyo/Kyoto Carbinet
- Nhiều dbm successors khác

Fun fact:
Python depends  on libsqlite3

$ apt-cache depends python2.7
python2.7
  Depends: python2.7-minimal
  Depends: mime-support
  Depends: libbz2-1.0
  Depends: libc6
  Depends: libdb5.1
  Depends: libexpat1
  Depends: libgcc1
  Depends: libncursesw5
  Depends: libreadline6
  Depends: libsqlite3-0
  Depends: libtinfo5
  Suggests: python2.7-doc
  Suggests: binutils
  Conflicts: <python-profiler>
  Conflicts: <python-profiler:i386>
  Replaces: <python-profiler>
  Replaces: <python-profiler:i386>
  Conflicts: python2.7:i386

Comments

Post a Comment

Popular posts from this blog

Tài liệu và hướng dẫn học Python

Để tiết kiệm thời gian, tốt nhất là đi học PyMI Updated: 130617 Sau đây là các tài liệu khuyên dùng: Vì nhiều lý do, nên học python2.7 tại thời điểm hiện tại (giờ là tháng 6/2013 - muốn biết tại sao thì tự tìm hiểu) python 3.5+ (giờ là tháng 2/2017) Chuẩn bị: 1. biết bật tắt máy 2. biết cài python 3. tập gõ 10 ngón - gõ 2 ngón hay 1 ngón cũng không sao, nhưng 10 ngón là cách dễ nhất để gõ nhanh nhất. Tài liệu - Nên dùng tài liệu tại trang chủ của Python làm chính, tham khảo thêm các tài liệu khác tại http://www.familug.org/2016/12/free-ebook.html Căn bản, mới học 1.1 Python PyMI.vn https://pymi.vn/tutorial/ 1.2. Python offical tutorial kết hợp làm bài tập trên HackerRank  (đề bài bằng tiếng Anh, nhưng Google translate 1 lúc cũng ra vì có nhiều ví dụ mẫu đi kèm). Học viên của Pymi.vn có rất nhiều học viên đã tự học với Learn Python the hard way nhưng chưa thấy ai thành công cả. Hai link dưới nên đọc sau khi đã nắm được những phần cơ bản của ngôn ngữ pytho...

The PyMiers

New FAMILUG