jackc / jackc/pgx

Sanitize not exposed

Open
#2,371 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14.3k
Forks
1.1k
Avg merge
6d 9h
Merged PRs (30d)
11

Description

Please describe the issue in detail. If this is a question about how to use pgx please use discussions instead.

Is there a reason why none of the relevant sanitize methods aren't exposed? I'd like to use pgxs argument binding and just print the query or just have the SanitizeSql method exposed.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by locating pgx's existing sanitize methods and argument-binding entry points. Determine whether exposing sanitization or SQL rendering is an appropriate public API, then verify the chosen behavior with tests covering bound arguments and rendered queries.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.