Home / Function/ FOREIGN_KEY_REFERENCES_EMPTY_ERROR() — astro Function Reference

FOREIGN_KEY_REFERENCES_EMPTY_ERROR() — astro Function Reference

Architecture documentation for the FOREIGN_KEY_REFERENCES_EMPTY_ERROR() function in errors.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  edf3cb35_2fe1_29b0_76af_7af0134b8812["FOREIGN_KEY_REFERENCES_EMPTY_ERROR()"]
  a8f82b98_ee2e_27ec_9847_3e96aeedc4ee["errors.ts"]
  edf3cb35_2fe1_29b0_76af_7af0134b8812 -->|defined in| a8f82b98_ee2e_27ec_9847_3e96aeedc4ee
  style edf3cb35_2fe1_29b0_76af_7af0134b8812 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/runtime/errors.ts lines 15–19

export const FOREIGN_KEY_REFERENCES_EMPTY_ERROR = (tableName: string) => {
	return `Foreign key on ${colors.bold(
		tableName,
	)} is misconfigured. \`references\` array cannot be empty.`;
};

Domain

Subdomains

Frequently Asked Questions

What does FOREIGN_KEY_REFERENCES_EMPTY_ERROR() do?
FOREIGN_KEY_REFERENCES_EMPTY_ERROR() is a function in the astro codebase, defined in packages/db/src/runtime/errors.ts.
Where is FOREIGN_KEY_REFERENCES_EMPTY_ERROR() defined?
FOREIGN_KEY_REFERENCES_EMPTY_ERROR() is defined in packages/db/src/runtime/errors.ts at line 15.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free