MCPcopy Create free account
hub / github.com/subquery/subql / formatColumnName

Function formatColumnName

packages/node-core/src/db/sequelizeUtil.ts:24–26  ·  view source on GitHub ↗
(columnName: string)

Source from the content-addressed store, hash-verified

22}
23
24export function formatColumnName(columnName: string): string {
25 return Utils.underscoredIf(columnName, true);
26}
27
28// Rewrite due to method is not exported from sequelize
29// This method is same from https://github.com/sequelize/sequelize/blob/26beda5bf76bd65e30264ebf135e39efaa7d514d/packages/core/src/utils/string.ts#L89

Callers 3

createColumnMethod · 0.90
dropColumnMethod · 0.90
createIndexMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected