MCPcopy Create free account
hub / github.com/cmoog/vscode-sql-notebook / sqlsDriverFromDriver

Function sqlsDriverFromDriver

src/lsp.ts:22–32  ·  view source on GitHub ↗
(
  driverKey: DriverKey
)

Source from the content-addressed store, hash-verified

20export type SqlsDriver = 'mysql' | 'postgresql' | 'mysql8' | 'sqlight3'; // TODO: complete
21
22export const sqlsDriverFromDriver = (
23 driverKey: DriverKey
24): SqlsDriver | null => {
25 switch (driverKey) {
26 case 'mysql':
27 return 'mysql';
28 case 'postgres':
29 return 'postgresql';
30 }
31 return null;
32};
33
34export function getCompiledLSPBinaryPath(): string | null {
35 const { arch, platform } = process;

Callers 1

startLanguageServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected