How to use the correctRecordSchema function from mssql

Find comprehensive JavaScript mssql.correctRecordSchema code examples handpicked from public code repositorys.

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;
fork icon0
star icon0
watch icon0