Tedious best practices? #1664
tyleralbee
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm hoping to stimulate some discussion on best practices for
tedious
, and more generally, database services as a whole.tedious
or a derivative? How are you bundling your project, if at all?I'll share some stuff I've made in my own projects to get the conversation going.
I'm a big fan of Zod and I wrote up some schema that define the translation between SQL Server data types and the ones that
tedious
converts to in JavaScript.Here's the one for
tinyint
:Since I've got all of the SQL Server data types defined like this, I can model my database tables as Zod schema like this:
What are you building lately?
Beta Was this translation helpful? Give feedback.
All reactions