torm
torm copied to clipboard
a typesafe orm-like database tool built around writing raw sql queries
we should have params and results for basic types, rather than only using defined models. This is necessary for example with: ```ts const stmt = this.prepare`SELECT ${Book.params['*']} FROM book LIMIT...
- [ ] initialization migrations should warn when the versions are not all in sync - [ ] versions without any matching upgrades should error - [ ] multiple migrations...
we want fields to be able to change their names (similar to SQL `AS` syntax). E.g. ```ts const query = this.prepare`SELECT ${Tag.params.name}, ${TagGroup.params.name.as('group')} FROM tag INNER JOIN tag_group ON tag_group_id...