Skip to content

Commit

Permalink
C++: Add upgrade and downgrade scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jketema committed Jan 13, 2025
1 parent 113cb04 commit 522e5f7
Show file tree
Hide file tree
Showing 8 changed files with 9,681 additions and 0 deletions.
2,415 changes: 2,415 additions & 0 deletions cpp/downgrades/a01d8f91b8d49259e509b574962dec90719f69a6/old.dbscheme

Large diffs are not rendered by default.

2,409 changes: 2,409 additions & 0 deletions cpp/downgrades/a01d8f91b8d49259e509b574962dec90719f69a6/semmlecode.cpp.dbscheme

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Improve user types and proxy classes
compatibility: full
usertypes.rel: run usertypes.qlo
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class UserType extends @usertype {
string toString() { none() }
}

bindingset[kind]
int getKind(int kind) { if kind in [15, 16, 17] then result = 6 else result = kind }

from UserType usertype, string name, int kind
where usertypes(usertype, name, kind)
select usertype, name, getKind(kind)
Loading

0 comments on commit 522e5f7

Please sign in to comment.