hey folks. I'm new to D1 (and databases in General). My current problem is data conversion. It seems
hey folks. I'm new to D1 (and databases in General).
My current problem is data conversion. It seems to me I need to manually convert JS data types to SQL data types and vice versa.
For example, for D1 BOOLEAN values I get
I looked into some ORMs but didn't find that functionality for automatic types conversion.
What are the ways to handle this problem? How do you approach it?
My current problem is data conversion. It seems to me I need to manually convert JS data types to SQL data types and vice versa.
For example, for D1 BOOLEAN values I get
0/1 in my function code. I expect to have true/false in my function code instead.I looked into some ORMs but didn't find that functionality for automatic types conversion.
What are the ways to handle this problem? How do you approach it?











