~/talk

Database Sorcery 101 Ditch the Ancient SQL Scrolls for SQLModel

Talkat PythonAsia 2026 · on Sunday, 2026-03-22· at 15:30· Pardo Hall (Secondary Hall)· [databases, python]
links:none on file
slides:none on file

Demonstrates replacing raw SQL/SQLAlchemy strings with SQLModel class-based schemas, creating a SQLite engine, auto-creating a wizards table, inserting a record named "Gandalf" via a session and reading it back as an object (no tuple indices), and adding Pydantic field validators that reject empty names. Claims SQLModel is beginner-friendly and built on SQLAlchemy, but notes class-as-table convenience comes with costs: Pydantic validators are slow and advanced multi-join queries become awkward. Overall the demo works but warns about performance and complexity limits.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Data runs the modern world
  3. 3:32Introduction
  4. 4:55Traditional SQL in Python
  5. 10:36SQLModel for cleaner code
  6. 13:18Creating tables with SQLModel
  7. 15:30Connecting with SQLModel
  8. 18:42Inserting and querying data
  9. 23:08SQLModel advantages
  10. 24:09Field validators in SQLModel
  11. 27:49SQLModel limitations
  12. 28:31Closing and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.