( values: Record<string, unknown>, table: AnyTable )
| 122 | } |
| 123 | |
| 124 | function mapValues( |
| 125 | values: Record<string, unknown>, |
| 126 | table: AnyTable |
| 127 | ): Record<string, unknown> { |
| 128 | const out: Record<string, unknown> = {}; |
| 129 | |
| 130 | for (const column of Object.values(table.columns)) { |
| 131 | out[column.names.drizzle] = values[column.ormName]; |
| 132 | } |
| 133 | |
| 134 | return out; |
| 135 | } |
| 136 | |
| 137 | function mapQueryResult(table: AnyTable, result: Record<string, unknown>) { |
| 138 | const out: Record<string, unknown> = {}; |
no test coverage detected