_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

SQLite for Prototyping

23. 01. 2024 1 min read intermediate

No server, no configuration, full SQL.

Why

  • No server — just file
  • Zero configuration
  • CTE, window functions
  • Millions of rows OK

Usage

sqlite3 mydb.sqlite
CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);
INSERT INTO users VALUES (1,'John');
SELECT * FROM users;

Python

import sqlite3
conn = sqlite3.connect('mydb.sqlite')
c = conn.cursor()
c.execute('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)')

WAL

PRAGMA journal_mode=WAL;
PRAGMA busy_timeout=5000;
  • YES — prototypes, tests, embedded, cache
  • NO — high concurrent writes, multi-server

SQLite = Simplicity

Perfect for getting started. Migration to PG simple.

sqlitesqlprototyping
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.