mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
7e3daf753c
Summary: Implementation of the bookmarks trait using diesel. Currently it's quite slow because it uses mutex to make the struct sync. Also it's not really async, even though it returns future. The plan to make it async is to move the computation on a separate thread pool. Reviewed By: kulshrax Differential Revision: D7255935 fbshipit-source-id: ce622a14af777ae470aecc039cef8c6cab9db41e
7 lines
155 B
SQL
7 lines
155 B
SQL
CREATE TABLE bookmarks (
|
|
repo_id INT UNSIGNED NOT NULL,
|
|
name VARCHAR(255) NOT NULL,
|
|
changeset_id VARBINARY(32) NOT NULL,
|
|
UNIQUE (repo_id, name)
|
|
);
|