postgrest-js-tools - a tiny library to help with db queries #4276
mzalevski
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's nothing remarkable really. I'm using it in my projects and I thought that maybe someone would find it helpful ^^
🔗 GitHub repo
🔗 NPM page
postgrest-js-tools
Tiny tools library for
@supabase/postgrest-js
.Features:
getShape
)getFields
)typeof shape
)Quick start
Install
Usage
click here to read how to generate database types ->
definitions
Methods
getShape: <T>() => <U extends Partial<MakePropTypesBoolean<T, T>>>(fields: U) => ParseReturnType<T, U>
getFields: (shape: Record<string, any>) => string
Beta Was this translation helpful? Give feedback.
All reactions