Scan your whole stack
From OX Research Newsroom
Are you using csv-to-pg?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v4.16.10
csv-to-pg was last scanned on 26 Nov 2026 at version 4.16.10. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 4.16.10 LATEST | 26 Nov 2026 | No rules fired |
| 4.16.9 | 26 Nov 2026 | No rules fired |
| 4.16.8 | 23 Nov 2026 | No rules fired |
| 4.16.7 | 23 Nov 2026 | Not shown |
| 4.16.6 | 21 Nov 2026 | Not shown |
Findings for v4.16.10. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 4.16.10; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Create PostgreSQL statements from CSV files
npm install -g csv-to-pg
The idea for this library was to solve complex CSV scenarios, so currently each CSV requires a config file.
Here is an example of a config.yaml that we can use to parse a csv that has no headers, and uses tab-delimited elements:
input: "./myfile.tsv"
output: "./myfile.sql"
schema: myschema
table: mytable
delimeter: "\t"
headers: # order of the headers
- feature
- category
- days
- start
- end
fields:
feature: text
category: text
days: int
start: date
end:
type: date
cast: date # explicitly cast to a date type
You can also use JS files or JSON. If you use JS, you can also create ASTs for super custom inserts (read tests).
Once you have a config file, simply call it and point to the config:
csv2pg ./config.yaml
🚀 Quickstart: Getting Up and Running Get started with modular databases in minutes. Install prerequisites and deploy your first module.
📦 Modular PostgreSQL Development with Database Packages Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
✏️ Authoring Database Changes Master the workflow for adding, organizing, and managing database changes with pgpm.
🧪 End-to-End PostgreSQL Testing with TypeScript Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
⚡ Supabase Testing Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts.
💧 Drizzle ORM Testing Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement.
🔧 Troubleshooting Common issues and solutions for pgpm, PostgreSQL, and testing.
SET LOCAL) into queries—ideal for setting role, jwt.claims, and other session settings.libpg_query, converting SQL into parse trees.Install skills for AI coding agents:
# All platform skills (security, blueprints, codegen, billing, etc.)
npx skills add constructive-io/constructive-skills
# Individual repo skills (pgpm, safegres, testing, CLI, search, etc.)
npx skills add constructive-io/constructive --skill pgpm
npx skills add constructive-io/constructive --skill safegres
npx skills add constructive-io/constructive --skill constructive-testing
🛠 Built by the Constructive team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on GitHub.
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.