errors.ts — astro Source File
Architecture documentation for errors.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a8f82b98_ee2e_27ec_9847_3e96aeedc4ee["errors.ts"] 10250468_0e83_bd69_43e9_3bcef2294a91["piccolore"] a8f82b98_ee2e_27ec_9847_3e96aeedc4ee --> 10250468_0e83_bd69_43e9_3bcef2294a91 style a8f82b98_ee2e_27ec_9847_3e96aeedc4ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import colors from 'piccolore';
export const FOREIGN_KEY_DNE_ERROR = (tableName: string) => {
return `Table ${colors.bold(
tableName,
)} references a table that does not exist. Did you apply the referenced table to the \`tables\` object in your db config?`;
};
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.`;
};
export const FOREIGN_KEY_REFERENCES_EMPTY_ERROR = (tableName: string) => {
return `Foreign key on ${colors.bold(
tableName,
)} is misconfigured. \`references\` array cannot be empty.`;
};
export const REFERENCE_DNE_ERROR = (columnName: string) => {
return `Column ${colors.bold(
columnName,
)} references a table that does not exist. Did you apply the referenced table to the \`tables\` object in your db config?`;
};
Domain
Subdomains
Functions
Dependencies
- piccolore
Source
Frequently Asked Questions
What does errors.ts do?
errors.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RoutingSystem subdomain.
What functions are defined in errors.ts?
errors.ts defines 4 function(s): FOREIGN_KEY_DNE_ERROR, FOREIGN_KEY_REFERENCES_EMPTY_ERROR, FOREIGN_KEY_REFERENCES_LENGTH_ERROR, REFERENCE_DNE_ERROR.
What does errors.ts depend on?
errors.ts imports 1 module(s): piccolore.
Where is errors.ts in the architecture?
errors.ts is located at packages/db/src/runtime/errors.ts (domain: CoreAstro, subdomain: RoutingSystem, directory: packages/db/src/runtime).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free