How to use the correctRecordSchema function from mssql
Find comprehensive JavaScript mssql.correctRecordSchema code examples handpicked from public code repositorys.
GitHub: Bazilio-san/af-lib
146 147 148 149 150 151 152 153 154 155
}); } const { columns } = res.recordset; let schemaAssoc = Array.isArray(omitFields) ? _.omit(columns, omitFields) : columns; schemaAssoc = Array.isArray(pickFields) ? _.pick(schemaAssoc, pickFields) : schemaAssoc; sql.correctRecordSchema(schemaAssoc, fieldTypeCorrection); const schema = _.map(schemaAssoc, (fo) => (fo)) .sort((a, b) => { if (a.index > b.index) return 1; if (a.index < b.index) return -1;
0
0
0
mssql.connect is the most popular function in mssql (5681 examples)