Home / Function/ FOREIGN_KEY_REFERENCES_LENGTH_ERROR() — astro Function Reference

FOREIGN_KEY_REFERENCES_LENGTH_ERROR() — astro Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/db/src/runtime/errors.ts lines 9–13

export const FOREIGN_KEY_REFERENCES_LENGTH_ERROR = (tableName: string) => {
	return `Foreign key on ${colors.bold(
		tableName,
	)} is misconfigured. \`columns\` and \`references\` must be the same length.`;
};

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free