Skip to main content

Function: snakeCase()

snakeCase(str): string

Defined in: service-core/src/database/NamingUtils.ts:15

Converts a string into snake_case.

Note: This function is intentionally identical in behavior to TypeORM's snakeCase utility so that collection/table names derived from class names remain stable for existing deployments.

Parameters

str

string

The string to convert.

Returns

string