Skip to content

Commit 9920c6c

Browse files
committed
Add csv.dbscheme to tutorial lib
The setup script will copy this from the DB. However, committing the file makes local query testing easier even without running the setup script.
1 parent 8301405 commit 9920c6c

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

tutorial-lib/csv.dbscheme

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
/*
2-
* This file is deliberately empty and will be replaced at startup.
3-
*/
1+
/** External data **/
2+
3+
externalData(
4+
int id : @externalDataElement,
5+
varchar(900) path : string ref,
6+
int column: int ref,
7+
varchar(900) value : string ref
8+
);
9+
10+
sourceLocationPrefix(
11+
string prefix : string ref
12+
);

tutorial-queries/tutorial.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
// Write your first CodeQL query here!
2+
13
// Import the tutorial library.
24
// See https://codeql.github.com/docs/writing-codeql-queries/ql-tutorials/#ql-tutorials.
35
import tutorial
46

5-
// Write your first CodeQL query here!
6-
77
from Person p
88
select p

0 commit comments

Comments
 (0)