MCPcopy Create free account
hub / github.com/bytebase/dbhub / loadSqlFile

Function loadSqlFile

src/config/demo-loader.ts:44–47  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

42 * Load SQL file contents
43 */
44export function loadSqlFile(fileName: string): string {
45 const filePath = path.join(DEMO_DATA_DIR, fileName);
46 return fs.readFileSync(filePath, "utf8");
47}
48
49/**
50 * Get SQLite DSN for in-memory database

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected