#sql Tagged Template Function

1 messages · Page 1 of 1 (latest)

maiden cove
#

Hi everyone. Please help. Where can find the tagged template function called 'sql' in the code?

timid jacinthBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

maiden cove
#

Is this post active?

stiff frigate
#

Hey @maiden cove

Do you mean you want to find the implementation code of sql function in the prisma repository?

maiden cove
#

@stiff frigate Thanks for getting back to me. Yes. Somehow, I'm using that function incorrectly (to make a dynamic SQL query) and I'm trying to get to the bottom of using it properly. But yes, I want to find the implementation code of sql function in the prisma repository.

maiden cove
maiden cove
#

@stiff frigate May I DM you?

#

When I use a regular string to call my sql query, it works fine. However, when I try to use that same string within a variable, I get an error. What am I doing wrong?

maiden cove
#

Anyone got any guidance on this?

maiden cove
#

Is it possible to make my own tagged function that works?

plain orchid
#

Hi @maiden cove, can you share the query and the error message?

maiden cove
#

@plain orchid You bet! Please stand by...

#

@plain orchid May I DM you? I might have some PII in there...