intervalConfig() — drizzle-orm Function Reference
Architecture documentation for the intervalConfig() function in introspect-pg.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 03d09ab8_478f_dae1_67b7_c8940a610f5d["intervalConfig()"] 90a7e393_b208_2bad_1685_2d282814ef97["introspect-pg.ts"] 03d09ab8_478f_dae1_67b7_c8940a610f5d -->|defined in| 90a7e393_b208_2bad_1685_2d282814ef97 74d2c776_086e_4856_e8af_d38ea641920c["column()"] 74d2c776_086e_4856_e8af_d38ea641920c -->|calls| 03d09ab8_478f_dae1_67b7_c8940a610f5d f076951d_25d8_4501_d13a_d008566b448c["intervalStrToObj()"] 03d09ab8_478f_dae1_67b7_c8940a610f5d -->|calls| f076951d_25d8_4501_d13a_d008566b448c style 03d09ab8_478f_dae1_67b7_c8940a610f5d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/introspect-pg.ts lines 130–141
const intervalConfig = (str: string) => {
const json = intervalStrToObj(str);
// json = Object.fromEntries(Object.entries(json).filter((it) => it[1]));
const keys = Object.keys(json);
if (keys.length === 0) return;
let statement = '{ ';
statement += keys.map((it: keyof typeof json) => `${it}: ${json[it]}`).join(', ');
statement += ' }';
return statement;
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does intervalConfig() do?
intervalConfig() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/introspect-pg.ts.
Where is intervalConfig() defined?
intervalConfig() is defined in drizzle-kit/src/introspect-pg.ts at line 130.
What does intervalConfig() call?
intervalConfig() calls 1 function(s): intervalStrToObj.
What calls intervalConfig()?
intervalConfig() is called by 1 function(s): column.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free