Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2023 (3)
20082026
  1. 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…
  2. 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…
  3. …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…