top-think / top-think/think-orm

PostgreSQL数据库操作缺ON CONFLICT DO NOTHING

Open
#854 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
437
Forks
188
PR merge metrics
No merged PRs in 30d

Description

IGNORE duplicate是针对mysql插入忽略重复数据 ,PostgreSQL是CONFLICT的 ON CONFLICT DO NOTHING操作

貌似除了写execute外 好像文档没有找到解决方法

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ORM's PostgreSQL insert path and compare it with the existing MySQL IGNORE behavior mentioned in the issue. Check the documentation and execute-based usage first; done means there is a documented ORM-level way to perform PostgreSQL ON CONFLICT DO NOTHING without requiring a raw execute call.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, postgresql
Domain
backend, database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.