Skip to content

0.10.2

Compare
Choose a tag to compare
@DallasHoff DallasHoff released this 21 Jul 02:44
· 33 commits to main since this release
  • The SQLocal constructor can now accept an object with additional options to define the behavior of the client. For now, this includes 2 new options: readOnly and verbose
  • The sql method can now be called with a plain string if needed (e.g. sql('SELECT * FROM foo')), instead of as a tagged template
  • The sql method's type parameter was changed to represent one record in the query result (extends Record<string, any>), instead of an array of results (extends Record<string, any>[]), and a matching type parameter was added to the transaction method to allow assertion of the return type of queries