( values: Record<string, unknown>, table: AnyTable )
| 203 | } |
| 204 | |
| 205 | function mapValues( |
| 206 | values: Record<string, unknown>, |
| 207 | table: AnyTable |
| 208 | ): Record<string, unknown> { |
| 209 | const out: Record<string, unknown> = {}; |
| 210 | |
| 211 | for (const column of Object.values(table.columns)) { |
| 212 | out[column.names.drizzle] = values[column.ormName]; |
| 213 | } |
| 214 | |
| 215 | return out; |
| 216 | } |
| 217 | |
| 218 | function mapQueryResult(table: AnyTable, result: Record<string, unknown>) { |
| 219 | const out: Record<string, unknown> = {}; |
no test coverage detected