Support postgresql VALUES lists
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 777
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
Example:
UPDATE names SET name = vals.name
FROM (VALUES (1, "Bob"), (2, "Mary"), (3, "Jane")) AS vals (id, name)
WHERE names.id = vals.id;
See https://www.postgresql.org/docs/9.5/queries-values.html
Is there a way to make pugsql generic enough to generate any SQL, regardless of whether or not the specific driver supports it, thus solving this in a more generic way?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the PostgreSQL VALUES-list example and read the linked PostgreSQL documentation to define the required SQL behavior. Then inspect pugsql's existing query-generation boundaries and determine whether driver-independent SQL generation is in scope. Done means the example can be represented and generated without restricting valid SQL to a driver's supported features.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100