Skip to content
Snippets Groups Projects
Commit 6a4e4101 authored by Julien Lopez's avatar Julien Lopez
Browse files

Add some tests on inlined query

parent 978782f8
Branches
No related tags found
No related merge requests found
q = select(function (x) {
res = new.env()
res$ename = x$ename
res },
from(new.tableRef("emp", "PostgreSQL", "postgre.config", "public")))
results = query.force(q)
print(results)
ename
1 SMITH
2 ALLEN
3 WARD
4 JONES
5 MARTIN
6 BLAKE
7 CLARK
8 SCOTT
9 KING
10 TURNER
11 ADAMS
12 JAMES
13 FORD
14 MILLER
tableName = "emp"
dbName = "PostgreSQL"
configFile = "postgre.config"
schemaName = "public"
q = select(function (x) {
res = new.env()
res$ename = x$ename
res },
from(new.tableRef("emp", "PostgreSQL", "postgre.config", "public")))
results = query.force(q)
print(results)
ename
1 SMITH
2 ALLEN
3 WARD
4 JONES
5 MARTIN
6 BLAKE
7 CLARK
8 SCOTT
9 KING
10 TURNER
11 ADAMS
12 JAMES
13 FORD
14 MILLER
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment