kwil-cli utils parse
kwil-cli utils parse
Parses SQL and returns the AST.
Synopsis
Parses SQL and returns the AST.
It can either be given a file or a string on the command line to parse. It can be given an out file where it will write the AST to a file. If no out file is given, it will simply print whether it was successful or not.
kwil-cli utils parse [flags]
Options
-h, --help help for parse
-i, --in string A file that SQL should be read from.
-o, --out string Output file to write the AST to.
-r, --remove-positions Remove positions from the AST.
Options inherited from parent commands
-Y, --assume-yes Assume yes for all prompts
--chain-id string the expected/intended Kwil Chain ID
-c, --config string the path to the Kwil CLI persistent global settings file (default "/Users/brennanlamey/.kwil-cli/config.json")
--output string the format for command output - either 'text' or 'json' (default "text")
--private-key string the private key of the wallet that will be used for signing
--provider string the Kwil provider RPC endpoint (default "http://127.0.0.1:8484")
-S, --silence Silence logs
SEE ALSO
- kwil-cli utils - Various CLI utility commands.