How githemiao/orm-lite works
ORM Lite is a header-only C++ ORM for SQLite. A consumer defines mapped entities and builds typed expressions and queries through the ORM API; the ORM turns those operations into SQL and dispatches them through the SQLite connector. The sampled source shows expression/query construction, entity metadata, delete operations, callback-based SQL execution, and nullable values. Other documented capabilities are not expanded beyond what the README and sampled excerpts support.
Main entry points: ormlite.h ORM API · sqlite_connector.h SQL connector · nullable.h Nullable values · sqlite3.h.zip SQLite engine
Components 7
ORM library
- ORM API
src/ormlite.h - Entity mapping
src/ormlite.h - Query DSL
src/ormlite.h - Nullable values
src/nullable.h
SQLite storage
- SQL connector
src/sqlite_connector.h - SQLite engine
src/sqlite3.h.zip
Other components
- C++ consumer
Connections 6
- C++ consumer → ORM API: uses
- ORM API → Entity mapping: maps entities
- ORM API → Query DSL: builds queries
- ORM API → SQL connector: dispatches SQL
- ORM API → Nullable values: uses values
- SQL connector → SQLite engine: executes SQL