dmagda/pg-compute-node
View on GitHub ↗ ★ 28 JavaScript
A client-side PostgreSQL extension that lets you execute JavaScript functions on the database directly from the application logic.
3 mentions on Hacker News by 2 people: 0 stories, 3 comments · first 2023-09-07 · latest 2023-09-07
20082026
-
Nice, thanks for catching the issue! https://github.com/dmagda/pg-compute-node/issues/5 This extension is primaraly for those who avoid using database functions at all because of not-the-best dev experience. Once your plv8 function is…
comment by magden · 2023-09-07 · in PgCompute: New PostgreSQL Client-Side Extension for Database Functions -
Vulnerable to SQL injection since it’s wrapping string args with single. https://github.com/dmagda/pg-compute-node/blob/main/compute/... Personally, I’d prefer to create plv8 functions out of band (in a migration) and call them explicitly…
comment by sa46 · 2023-09-07 · in PgCompute: New PostgreSQL Client-Side Extension for Database Functions -
…a deploymentTable object that tracks functions that were already sent and executed on the database: https://github.com/dmagda/pg-compute-node/blob/main/compute/... ) 2. If the function already exists on the database and its implementation…
comment by magden · 2023-09-07 · in PgCompute: New PostgreSQL Client-Side Extension for Database Functions