Skip to content

复制 A 数据库主键(已绑定块)粘贴到 B 数据库主键时,需要绑定块 Improve database paste binding blocks #12408

Closed
@TCOTC

Description

@TCOTC

复制 A 数据库主键(已绑定块)粘贴到 B 数据库主键时,需要绑定块

https://ld246.com/article/1725596885614 第二点

image


如果粘贴的目标数据库中已包含粘贴的绑定块 → 只保留纯文本主键。这样就不会丢失条目里除了主键外的其他字段信息(否则用户可能注意不到复制粘贴的条目有的没有粘贴进去就把原来的数据库删了)

Activity

added this to the 3.1.6 milestone on Sep 8, 2024
changed the title [-]复制 A 数据库主键(已绑定块)粘贴到 B 数据库主键时,需要绑定块[/-] [+]Improve database paste binding blocks[/+] on Sep 8, 2024
Vanessa219

Vanessa219 commented on Sep 9, 2024

@Vanessa219
Member

无法区分是当前数据库,还是其他数据库。如果是当前数据库的话,就永远无法粘贴了。

removed their assignment
on Sep 9, 2024
removed this from the 3.1.6 milestone on Sep 9, 2024
TCOTC

TCOTC commented on Sep 9, 2024

@TCOTC
ContributorAuthor

为啥不能粘贴?

Vanessa219

Vanessa219 commented on Sep 11, 2024

@Vanessa219
Member

一个 id 只能有一条。不论怎么粘贴都只有一条。

TCOTC

TCOTC commented on Sep 11, 2024

@TCOTC
ContributorAuthor

如果粘贴的目标数据库中已包含粘贴的绑定块 → 只保留纯文本主键

这个实现不了吗?

Vanessa219

Vanessa219 commented on Sep 14, 2024

@Vanessa219
Member

判断不了当前库是否有存在已绑定的 id,如果发请求的话,会让用户有延迟感。

changed the title [-]Improve database paste binding blocks[/-] [+]复制 A 数据库主键(已绑定块)粘贴到 B 数据库主键时,需要绑定块 Improve database paste binding blocks[/+] on Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @88250@Vanessa219@TCOTC

        Issue actions

          复制 A 数据库主键(已绑定块)粘贴到 B 数据库主键时,需要绑定块 Improve database paste binding blocks · Issue #12408 · siyuan-note/siyuan