After opening my first few ActiveRecord PRs last week, I kept going and opened 4 more to bring more key improvements to the SQLite adapter.
All in all, I have opened 3 pull requests to bring larger, existing ActiveRecord features to the SQLite3Adapter
:
- support auto-populating columns and custom primary keys
- support generated columns
- support deferred foreign keys
In addition, I have also opened 3 additional pull requests to add some new, SQLite
-specific features:
- support
||
concatenation in default functions - performance tune default connection configurations
- add
retries
option as alternative totimeout
I am chatting with the Core team and trying to get all of this work into the upcoming 7.1 release, but nothing is set in stone yet.
Regardless, I thought it would be useful to take the next few posts and dive into the details and use-cases for each of these features in turn. I already started this by writing up how to setup custom primary keys in your Rails app.
Up next, I will write up how to use generated columns in your Rails app. So, keep your eyes out ๐
All posts in this series #
- Part 1 โ branch-specific databases
- Part 2 โ fine-tuning SQLite configuration
- Part 3 โ loading extensions
- Part 4 โ setting up
Litestream
- Part 5 โ optimizing compilation
- Part 6 โ array columns
- Part 7 โ local snapshots
- Part 8 โ Rails improvements
- Part 9 โ performance metrics
- Part 10 โ custom primary keys
- Part 11 โ more Rails improvements
- Part 12 โ table schema and metadata
- Part 13 โ prefixed ULID keys
- Part 14 โ installing extensions