How sqlite7 WorksΒΆ
sqlite7 is not an ORM. You still write SQL when you want to. The library focuses on making raw SQLite access cleaner and safer.
There are two layers:
Direct SQL methods like
execute(),fetch_all(), andscript()Convenience helpers like
select(),insert(),update(),delete(), andupsert()
The helper methods validate table and column names before interpolating them into SQL, while query values are still passed as parameters.