jeremydaly / serverless-mysql

A module for managing MySQL connections at SERVERLESS scale
MIT License
1.21k stars 83 forks source link

TINYINT to BOOLEAN #130

Closed pergunt closed 1 year ago

pergunt commented 2 years ago

Is there a way to transfrom TINYINT fields to BOOLEAN "on fly" where we are querring TINYINT fields? So intstead of returning 1 or 0we will be returning true / false

naorpeled commented 1 year ago

Hey @pergunt, yes!

I recommend reading this article that discusses this exact situation with several solutions for doing so.