( table: AnyTable, select: AnySelectClause )
| 55 | } |
| 56 | |
| 57 | export function serializeSelect( |
| 58 | table: AnyTable, |
| 59 | select: AnySelectClause |
| 60 | ): SerializedSelect { |
| 61 | if (select === true) return Object.keys(table.columns); |
| 62 | return select; |
| 63 | } |
| 64 | |
| 65 | export function serializeWhere(where: Condition): SerializedWhere { |
| 66 | if (where.type === ConditionType.Compare) { |