Skip to content

Type safe fetching

Choose a tag to compare

@g105b g105b released this 31 Oct 13:45
· 71 commits to master since this release
2039db4

This release introduces the ability to fetch single columns from the database in a type-safe way. If your query only selects one column, you can fetch it using the newly introduced type-safe functions:

  • fetchBool / fetchAllBool
  • fetchString / fetchAllString
  • fetchInt / fetchAllInt
  • fetchFloat / fetchAllFloat
  • fetchDateTime / fetchAllDateTime

Along with the above, the type-safe Row function getDateTime allows the returning of nullable fields, which removes an unintended strict rule introduced in the last release.