aboutsummaryrefslogtreecommitdiff
path: root/src/model/block_ref_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-14 12:34:01 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-15 15:39:10 +0100
commit8f6026de5ecd44cbe0fc0bcd47638a1ece860439 (patch)
tree5adf96c2218aa27b59eeb66cda676895979d4257 /src/model/block_ref_table.rs
parent945b75dbf1de8bb22ebf9824727a2c45561bfcf4 (diff)
downloadgarage-8f6026de5ecd44cbe0fc0bcd47638a1ece860439.tar.gz
garage-8f6026de5ecd44cbe0fc0bcd47638a1ece860439.zip
Make table name a const in trait
Diffstat (limited to 'src/model/block_ref_table.rs')
-rw-r--r--src/model/block_ref_table.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/model/block_ref_table.rs b/src/model/block_ref_table.rs
index f8f529c4..7dc973d5 100644
--- a/src/model/block_ref_table.rs
+++ b/src/model/block_ref_table.rs
@@ -44,6 +44,8 @@ pub struct BlockRefTable {
}
impl TableSchema for BlockRefTable {
+ const TABLE_NAME: &'static str = "block_ref";
+
type P = Hash;
type S = Uuid;
type E = BlockRef;