z3n
z3n
DTDrizzle Team
Created by z3n on 9/29/2023 in #help
Getting syntax error when using the sql operator (pg)
Great, I'll try that. Thanks for your help!
8 replies
DTDrizzle Team
Created by z3n on 9/29/2023 in #help
Getting syntax error when using the sql operator (pg)
Hi, thanks for the reply! Yes it is. It runs in the db just fine. Also works with sql.raw() but that would introduce a security flaw. This sets a temporary variable in the database and is later accessed using
SELECT current_setting('db.tanant_id');
SELECT current_setting('db.tanant_id');
for row level security
8 replies