MCPcopy Index your code
hub / github.com/Waishnav/devspace / checkSqliteNative

Function checkSqliteNative

src/cli.ts:365–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

363class SetupCancelledError extends Error {}
364
365function checkSqliteNative(): string {
366 try {
367 const Database = require("better-sqlite3") as typeof import("better-sqlite3");
368 const db = new Database(":memory:");
369 db.close();
370 return "ok";
371 } catch (error) {
372 return error instanceof Error ? error.message : String(error);
373 }
374}
375
376function checkGitAvailable(): string {
377 try {

Callers 2

serveFunction · 0.85
runDoctorFunction · 0.85

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected