Zum Inhalt springen
_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
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

SQLite pro prototypování

23. 01. 2024 1 Min. Lesezeit intermediate

Žádný server, žádná konfigurace, plné SQL.

Proč

  • Žádný server — jen soubor
  • Zero konfigurace
  • CTE, window functions
  • Miliony řádků OK

Použití

sqlite3 mydb.sqlite CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT); INSERT INTO users VALUES (1,’Jan’); 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;

  • ANO — prototypy, testy, embedded, cache
  • NE — high concurrent write, multi-server

SQLite = jednoduchost

Perfektní pro začátek. Migrace na PG jednoduchá.

sqlitesqlprototypování
Teilen:

CORE SYSTEMS tým

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