MCPcopy
hub / github.com/BuilderIO/agent-native / isLocalDatabase

Function isLocalDatabase

packages/core/src/db/client.ts:213–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 * would read and write each other's settings, oauth tokens, and app state.
212 */
213export function isLocalDatabase(): boolean {
214 if (getDialect() !== "sqlite") return false;
215 const url = getDatabaseUrl();
216 return url === "" || url.startsWith("file:");
217}
218
219/** Returns BIGINT for Postgres (64-bit), INTEGER for SQLite (already 64-bit). */
220export function intType(): string {

Callers 4

isMultiTenantDeployFunction · 0.85
isEnvVarWriteAllowedFunction · 0.85
getAppProductionUrlFunction · 0.85
isMultiTenantDeployFunction · 0.85

Calls 2

getDialectFunction · 0.85
getDatabaseUrlFunction · 0.85

Tested by

no test coverage detected