Rust: add upgrade/downgrade scripts for new tables

This commit is contained in:
Paolo Tranquilli
2025-06-02 16:34:13 +02:00
parent 04c9feed36
commit 1110fea2a2
7 changed files with 14461 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
description: Remove `function_has_implementation` and `const_has_implementation` tables
compatibility: full
function_has_implementation.rel: delete
const_has_implementation.rel: delete

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
description: Add `function_has_implementation` and `const_has_implementation` tables
compatibility: backwards
function_has_implementation.rel: run upgrade.ql new_function_has_implementation
const_has_implementation.rel: run upgrade.ql new_const_has_implementation

View File

@@ -0,0 +1,7 @@
class Element extends @element {
string toString() { none() }
}
query predicate new_function_has_implementation(Element e) { function_bodies(e, _) }
query predicate new_const_has_implementation(Element e) { const_bodies(e, _) }