sapling/bookmarks/dbbookmarks/schemas/sqlite-bookmarks.sql
Stanislau Hlebik 7e3daf753c mononoke: implement bookmarks using diesel
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
2018-03-21 14:24:43 -07:00

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)
);