Ruby: make node column unique

This commit is contained in:
Nick Rolfe
2022-02-08 09:55:34 +00:00
parent dbe2951aec
commit 2037368f62
2 changed files with 3 additions and 3 deletions

View File

@@ -260,7 +260,7 @@ fn create_ast_node_info_table<'a>(
dbscheme::Column {
db_type: dbscheme::DbColumnType::Int,
name: "node",
unique: false,
unique: true,
ql_type: ql::Type::At(ast_node_name),
ql_type_is_ref: true,
},

View File

@@ -1326,7 +1326,7 @@ case @ruby_token.kind of
#keyset[parent, parent_index]
ruby_ast_node_info(
int node: @ruby_ast_node ref,
unique int node: @ruby_ast_node ref,
int parent: @ruby_ast_node_parent ref,
int parent_index: int ref,
int loc: @location ref
@@ -1385,7 +1385,7 @@ case @erb_token.kind of
#keyset[parent, parent_index]
erb_ast_node_info(
int node: @erb_ast_node ref,
unique int node: @erb_ast_node ref,
int parent: @erb_ast_node_parent ref,
int parent_index: int ref,
int loc: @location ref