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

Function isPostgresUrl

packages/core/src/scripts/db/schema.ts:38–40  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

36}
37
38function isPostgresUrl(url: string): boolean {
39 return url.startsWith("postgres://") || url.startsWith("postgresql://");
40}
41
42function databaseLabel(url: string): string {
43 if (url.startsWith("file:")) return url.slice(5);

Callers 1

dbSchemaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected