Select

This tutorial uses examples of the basis usage of SELECT statement

Different select types

select x, z from s.()

select x, z from s
select x, z from s.()
select x, z from () => {}


// Select from URI

select x, z from (http://www.google.com)
select x, z from http://source.com

select x, z from ['http://googl.com', 'http://www.src2.com']

Example 1

  let x = select x, y from source()

Transpiled

let x = From(source())
        .Select((row, index)=> {
            return {'x': row.x}
        })

Example 2

let iterator = select css('#test'), css('#test') from sourceA()

for (x of iterator) {
    console.info(x)
}

Transpiled

let iter = From(source())
        .Select((row, index)=> {
            return {'x': row.x}
        })

for (x of iter) {
    console.info(x)
}