Skip to content

Commit 555301c

Browse files
authored
Merge pull request #20874 from igfoo/igfoo/overlay
C++: Add the beginnings of overlay support
2 parents 43111b8 + 6c7370e commit 555301c

File tree

9 files changed

+11235
-1319
lines changed

9 files changed

+11235
-1319
lines changed

cpp/downgrades/a42ce5fc943254097f85471b94ae2247e819104a/old.dbscheme

Lines changed: 2469 additions & 0 deletions
Large diffs are not rendered by default.

cpp/downgrades/a42ce5fc943254097f85471b94ae2247e819104a/semmlecode.dbscheme

Lines changed: 2450 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
description: Add databaseMetadata and overlayChangedFiles relations
2+
compatibility: full
3+
databaseMetadata.rel: delete
4+
overlayChangedFiles.rel: delete

cpp/ql/lib/qlpack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ dataExtensions:
2121
- ext/deallocation/*.model.yml
2222
- ext/allocation/*.model.yml
2323
warnOnImplicitThis: true
24+
compileForOverlayEval: true

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*- Compilations -*/
23

34
/**
@@ -2378,6 +2379,24 @@ link_parent(
23782379
int link_target : @link_target ref
23792380
);
23802381

2382+
/**
2383+
* The CLI will automatically emit applicable tuples for this table,
2384+
* such as `databaseMetadata("isOverlay", "true")` when building an
2385+
* overlay database.
2386+
*/
2387+
databaseMetadata(
2388+
string metadataKey: string ref,
2389+
string value: string ref
2390+
);
2391+
2392+
/**
2393+
* The CLI will automatically emit tuples for each new/modified/deleted file
2394+
* when building an overlay database.
2395+
*/
2396+
overlayChangedFiles(
2397+
string path: string ref
2398+
);
2399+
23812400
/*- XML Files -*/
23822401

23832402
xmlEncoding(

0 commit comments

Comments
 (0)