Content-Length: 255350 | pFad | http://github.com/googleapis/go-sql-spanner/pull/431

88 chore: support PostgreSQL-style parameters by olavloite · Pull Request #431 · googleapis/go-sql-spanner · GitHub
Skip to content

chore: support PostgreSQL-style parameters #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: postgresql-comments
Choose a base branch
from

Conversation

olavloite
Copy link
Collaborator

Adds support for both recognizing PostgreSQL-style query parameters, and converting positional parameters to PostgreSQL-style query parameters.

When using the PostgreSQL-dialect, the driver accepts both GoogleSQL and PostgreSQL-style named parameters (so both @param and $1). This to be consistent with other PostgreSQL drivers in Go (e.g. pgx).

@olavloite olavloite requested a review from bhatt4982 May 22, 2025 19:39
@olavloite olavloite requested a review from a team as a code owner May 22, 2025 19:39
Adds support for both recognizing PostgreSQL-style query parameters, and
converting positional parameters to PostgreSQL-style query parameters.

When using the PostgreSQL-dialect, the driver accepts both GoogleSQL
and PostgreSQL-style named parameters (so both @param and $1). This to
be consistent with other PostgreSQL drivers in Go (e.g. pgx).
@olavloite olavloite force-pushed the postgresql-query-params branch from eccdb4c to 23b1d25 Compare May 23, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/go-sql-spanner/pull/431

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy