Generic update component using table schema – how to type the table argument?
SOLVED IN BOTTOM COMMENT
I'm attempting a generic update checkbox component where I can pass a type of MySQL (PlanetScale) table, and an associated keyName, and use those params in the db.update() query.
Can anyone guide me on how to type the table argument?
I'm attempting a generic update checkbox component where I can pass a type of MySQL (PlanetScale) table, and an associated keyName, and use those params in the db.update() query.
Can anyone guide me on how to type the table argument?