@@ -42,24 +42,10 @@ extensions.</p>
4242<dd ><p >The <a href =" #user-content-sqldialect " >dialect</a > to use. Defaults to
4343<a href =" #user-content-standardsql " ><code >StandardSQL</code ></a >.</p >
4444</dd ><dt id =" user-content-sqlconfig.schema " >
45- <code ><strong ><a href =" #user-content-sqlconfig.schema " >schema</a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object " >Object</a >< ; readonly (<a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String " >string</a > | <a href =" https://codemirror.net/docs/ref#autocomplete.Completion " >Completion</a >)[ ] > ; </code ></dt >
46-
47- <dd ><p >An object that maps table names, optionally prefixed with a
48- schema name (<code >" ; schema.table" ; </code >) to options (columns) that can be
49- completed for that table. Use lower-case names here.</p >
50- </dd ><dt id =" user-content-sqlconfig.tables " >
51- <code ><strong ><a href =" #user-content-sqlconfig.tables " >tables</a ></strong >⁠ ; ?: readonly <a href =" https://codemirror.net/docs/ref#autocomplete.Completion " >Completion</a >[ ] </code ></dt >
52-
53- <dd ><p >By default, the completions for the table names will be
54- generated from the <code >schema</code > object. But if you want to
55- customize them, you can pass an array of completions through
56- this option.</p >
57- </dd ><dt id =" user-content-sqlconfig.schemas " >
58- <code ><strong ><a href =" #user-content-sqlconfig.schemas " >schemas</a ></strong >⁠ ; ?: readonly <a href =" https://codemirror.net/docs/ref#autocomplete.Completion " >Completion</a >[ ] </code ></dt >
59-
60- <dd ><p >Similar to <code >tables</code >, if you want to provide completion objects
61- for your schemas rather than using the generated ones, pass them
62- here.</p >
45+ <code ><strong ><a href =" #user-content-sqlconfig.schema " >schema</a ></strong >⁠ ; ?: <a href =" #user-content-sqlnamespace " >SQLNamespace</a ></code ></dt >
46+
47+ <dd ><p >You can use this to define the schemas, tables, and their fields
48+ for autocompletion.</p >
6349</dd ><dt id =" user-content-sqlconfig.defaulttable " >
6450 <code ><strong ><a href =" #user-content-sqlconfig.defaulttable " >defaultTable</a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String " >string</a ></code ></dt >
6551
@@ -76,6 +62,19 @@ completed directly at the top level.</p>
7662<dd ><p >When set to true, keyword completions will be upper-case.</p >
7763</dd ></dl >
7864
65+ </dd >
66+ <dt id =" user-content-sqlnamespace " >
67+ <code >
68+ type
69+ <strong><a href="#user-content-sqlnamespace">SQLNamespace</a></strong> = <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a><<a href="#user-content-sqlnamespace">SQLNamespace</a>> | {self: <a href="https://codemirror.net/docs/ref#autocomplete.Completion">Completion</a>, children: <a href="#user-content-sqlnamespace">SQLNamespace</a>} | readonly (<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a> | <a href="https://codemirror.net/docs/ref#autocomplete.Completion">Completion</a>)[]</code>
70+ </dt >
71+
72+ <dd ><p >The type used to describe a level of the schema for
73+ <a href =" #user-content-sqlconfig.schema " >completion</a >. Can be an array of
74+ options (columns), an object mapping table or schema names to
75+ deeper levels, or a <code >{self, children}</code > object that assigns a
76+ completion option to use for its parent property, when the default option
77+ (its name as label and type <code >" ; type" ; </code >) isn't suitable.</p >
7978</dd >
8079<dt id =" user-content-sqldialect " >
8180 <h4 >
@@ -153,6 +152,11 @@ strings, rather than identifiers.</p>
153152 <code ><strong ><a href =" #user-content-sqldialectspec.charsetcasts " >charSetCasts</a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean " >boolean</a ></code ></dt >
154153
155154<dd ><p >Enables strings like <code >_utf8'str'</code > or <code >N'str'</code >.</p >
155+ </dd ><dt id =" user-content-sqldialectspec.plsqlquotingmechanism " >
156+ <code ><strong ><a href =" #user-content-sqldialectspec.plsqlquotingmechanism " >plsqlQuotingMechanism</a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean " >boolean</a ></code ></dt >
157+
158+ <dd ><p >Enables string quoting syntax like <code >q'[str]'</code >, as used in
159+ PL/SQL.</p >
156160</dd ><dt id =" user-content-sqldialectspec.operatorchars " >
157161 <code ><strong ><a href =" #user-content-sqldialectspec.operatorchars " >operatorChars</a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String " >string</a ></code ></dt >
158162
@@ -168,11 +172,12 @@ Defaults to <code>"?"</code>.</p>
168172
169173<dd ><p >The characters that can be used to quote identifiers. Defaults
170174to <code >" ; \& quot;" ; </code >.</p >
171- </dd ><dt id =" user-content-sqldialectspec.identifiercaseinsensitive " >
172- <code ><strong ><a href =" #user-content-sqldialectspec.identifiercaseinsensitive " >identifiercaseinsensitive </a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean " >boolean</a ></code ></dt >
175+ </dd ><dt id =" user-content-sqldialectspec.caseinsensitiveidentifiers " >
176+ <code ><strong ><a href =" #user-content-sqldialectspec.caseinsensitiveidentifiers " >caseInsensitiveIdentifiers </a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean " >boolean</a ></code ></dt >
173177
174- <dd ><p >Controls whether identifiers are case-insensitive. Identifiers with upper-case letters are quoted then set to false. Defaults
175- to <code >false</code >.</p >
178+ <dd ><p >Controls whether identifiers are case-insensitive. Identifiers
179+ with upper-case letters are quoted when set to false (which is
180+ the default).</p >
176181</dd ><dt id =" user-content-sqldialectspec.unquotedbitliterals " >
177182 <code ><strong ><a href =" #user-content-sqldialectspec.unquotedbitliterals " >unquotedBitLiterals</a ></strong >⁠ ; ?: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean " >boolean</a ></code ></dt >
178183
0 commit comments