UNPKG
@dpkit/table
Version:
latest (2.0.0)
2.0.0
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.17.2
0.17.1
0.17.0
0.16.3
0.16.2
0.16.1
0.16.0
0.15.0
0.14.2
0.14.1
0.14.0
0.13.1
0.13.0
0.12.21
0.12.20
0.12.19
0.12.18
0.12.17
0.12.16
0.12.14
0.12.13
0.12.11
0.12.10
0.12.9
0.12.8
0.12.7
0.12.6
0.11.1
0.11.0
0.10.1
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
Data Package implementation in TypeScript.
github.com/datisthq/dpkit
datisthq/dpkit
@dpkit/table
/
table
/
query.ts
8 lines
(6 loc)
•
222 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
SQLContext
}
from
"nodejs-polars"
import
type
{
Table
}
from
"./Table.ts"
export
function
queryTable
(
table
:
Table
,
query
:
string
) {
const
context =
SQLContext
({
self
: table })
return
context.
execute
(query) }