You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Line starting with HelloSELECT`line_number`, `line`WHERE`line`LIKE"Hello%"# First line in the fileSELECT`line`WHERE`line_number`=1# Number of lines in the fileSELECTCOUNT( `line` )
# Number of lines in the file, different waySELECTMAX( `line_number` )
# Last line in the fileSELECT`line`WHERE`line_number`=COUNT( `line` )
# Content from some linesSELECT`line`WHERE`line_number` BETWEEN 5AND10# Content from some lines, different way (needed?)SELECT`line` OFFSET 5LIMIT5
Basic Operators
=, <>, >, >=, <, <=, LIKE, NOT, AND, OR, BETWEEN
Basic Constructions
WHERE, ORDER BY
Basic Functions
COUNT, MAX
Expected future enhancements
MATCHES operator, for matching a given regular expression.
E.g., SELECT * WHERE line MATCHES "^Created at [0-9]{1,2}:[0-9]{1,2}"
The text was updated successfully, but these errors were encountered:
Proposal
database-js-txt
Virtual Columns
Text files could have these virtual columns:
line
(any line of the file)line_number
Examples:
Basic Operators
=
,<>
,>
,>=
,<
,<=
,LIKE
,NOT
,AND
,OR
,BETWEEN
Basic Constructions
WHERE
,ORDER BY
Basic Functions
COUNT
,MAX
Expected future enhancements
MATCHES
operator, for matching a given regular expression.E.g.,
SELECT * WHERE line MATCHES "^Created at [0-9]{1,2}:[0-9]{1,2}"
The text was updated successfully, but these errors were encountered: