MCPcopy Create free account
hub / github.com/cortexkit/magic-context / stmt

Function stmt

packages/cli/src/commands/migrate.ts:187–189  ·  view source on GitHub ↗
(db: DatabaseLike, sql: string)

Source from the content-addressed store, hash-verified

185}
186
187function stmt<T>(db: DatabaseLike, sql: string): StatementLike<T> {
188 return db.prepare(sql) as unknown as StatementLike<T>;
189}
190
191export function projectPathToPiDirSlug(projectPath: string): string {
192 return `--${projectPath.replace(/^\/+|\/+$/g, "").replaceAll("/", "-")}--`;

Callers 3

fetchRowsFunction · 0.85
copyMagicContextStateFunction · 0.85
commitFunction · 0.85

Calls 1

prepareMethod · 0.45

Tested by

no test coverage detected