Skip to content

splitStatements

splitStatements(source): string[]

Defined in: libs/session/src/classify.ts:50

Split a source into statements a session can run one at a time.

A pipeline may span lines and semicolons: match $s isa project, has project-id "x"; followed by insert …; is one pipeline, so splitting on ; alone would tear every match … insert in half. A statement ends at a ; that is not followed by a stage keyword.

string

string[]

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.