Skip to content

Commit 1ddfed6

Browse files
committed
Python: Add QL support for lazy imports
Adds a new `isLazy` predicate to the relevant classes, and adds the relevant dbscheme (and up/downgrade) changes. On upgrades we do nothing, and on downgrades we remove the `is_lazy` bits.
1 parent fe94828 commit 1ddfed6

File tree

10 files changed

+5188
-1
lines changed

10 files changed

+5188
-1
lines changed

python/downgrades/eb5fc917c79bb23ce2de4a022f3e566d57a91be9/old.dbscheme

Lines changed: 1291 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class BoolParent extends @py_bool_parent {
2+
string toString() { result = "BoolParent" }
3+
}
4+
5+
// Drop py_bools rows for Import and ImportStar parents,
6+
// since the old schema does not include them in @py_bool_parent.
7+
from BoolParent parent, int idx
8+
where
9+
py_bools(parent, idx) and
10+
not parent instanceof @py_Import and
11+
not parent instanceof @py_ImportStar
12+
select parent, idx

0 commit comments

Comments
 (0)