sql_editor_open_file
Open a .sql file from the SQL Editor folder or SAS Viya, return its version for safe saves, and optionally add it to Recent.
Instructions
Read one .sql file from the SQL Editor's folder, or a file on SAS Viya.
``name``: a local file (relative to the SQL folder, or absolute), or a SAS Viya file ref
(``sas-content://<connection>/<path>`` or ``sas-server://<connection>/<path>``, see viya_files_browse);
a Viya file's result has its ``version`` (ETag), which sql_editor_save_file checks before overwriting.
``remember`` puts it on the Recent list (false when the editor only
re-reads its open file to compare it with the restored draft).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| remember | No |