MCPcopy Create free account
hub / github.com/TabularisDB/tabularis / createRemoteDriver

Function createRemoteDriver

tests/utils/connectionStringParser.test.ts:11–29  ·  view source on GitHub ↗
(
  id: string,
  example: string,
)

Source from the content-addressed store, hash-verified

9} from "../../src/utils/connectionStringParser";
10
11function createRemoteDriver(
12 id: string,
13 example: string,
14): ConnectionStringDriver {
15 return {
16 id,
17 capabilities: {
18 schemas: id === "postgres",
19 views: true,
20 routines: true,
21 file_based: false,
22 folder_based: false,
23 connection_string: true,
24 connection_string_example: example,
25 identifier_quote: id === "mysql" ? "`" : '"',
26 alter_primary_key: true,
27 },
28 };
29}
30
31// Mirrors the real builtin driver capabilities (postgres:// and mysql://
32// examples) so alias coverage below exercises the alias expansion, not the

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected