(colName)
| 54 | * @returns {string|Objection.ReferenceBuilder} |
| 55 | */ |
| 56 | const castJsonIfNeed = (colName) => (isPostgres() ? ref(colName).castText() : colName); |
| 57 | |
| 58 | export { parseDatePeriod, convertIntFieldsToBool, convertBoolFieldsToInt, castJsonIfNeed }; |
no test coverage detected