Add overlay builtins to python dbscheme

This commit is contained in:
Nora Dimitrijević
2025-08-11 16:14:07 +02:00
parent 4c9ca93cdf
commit a88d3397cd
3 changed files with 33 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
"fragments": [ "fragments": [
"/*- Compilations -*/", "/*- Compilations -*/",
"/*- External data -*/", "/*- External data -*/",
"/*- Overlay support -*/",
"/*- Files and folders -*/", "/*- Files and folders -*/",
"/*- Diagnostic messages -*/", "/*- Diagnostic messages -*/",
"/*- Diagnostic messages: severity -*/", "/*- Diagnostic messages: severity -*/",

View File

@@ -40,6 +40,22 @@ externalData(
string value : string ref string value : string ref
); );
/*- Overlay support -*/
/**
* The CLI will automatically emit the tuple `databaseMetadata("isOverlay", "true")`,
* along with an `overlayChangedFiles` tuple for each new/modified/deleted file,
* when building an overlay database, and these can be used by the discard predicates.
*/
databaseMetadata(
string metadataKey : string ref,
string value : string ref
);
overlayChangedFiles(
string path : string ref
);
/*- DEPRECATED: Snapshot date -*/ /*- DEPRECATED: Snapshot date -*/
snapshotDate(unique date snapshotDate : date ref); snapshotDate(unique date snapshotDate : date ref);

View File

@@ -47,6 +47,22 @@ externalData(
string value : string ref string value : string ref
); );
/*- Overlay support -*/
/**
* The CLI will automatically emit the tuple `databaseMetadata("isOverlay", "true")`,
* along with an `overlayChangedFiles` tuple for each new/modified/deleted file,
* when building an overlay database, and these can be used by the discard predicates.
*/
databaseMetadata(
string metadataKey : string ref,
string value : string ref
);
overlayChangedFiles(
string path : string ref
);
/*- DEPRECATED: Snapshot date -*/ /*- DEPRECATED: Snapshot date -*/
snapshotDate(unique date snapshotDate : date ref); snapshotDate(unique date snapshotDate : date ref);