(name: string)
| 19 | }); |
| 20 | |
| 21 | const createDbField = (name: string) => ({ |
| 22 | name, |
| 23 | field_type: typeof value === "number" ? "I32" : "StringU8", |
| 24 | is_key: false, |
| 25 | default_value: "", |
| 26 | is_filename: false, |
| 27 | is_reference: [], |
| 28 | description: "", |
| 29 | ca_order: 0, |
| 30 | is_bitwise: 0, |
| 31 | enum_values: {}, |
| 32 | }); |
| 33 | |
| 34 | const createTableSelection = (tableName: string, columns: string[], rows: Array<Array<string | number>>) => { |
| 35 | const schemaFields = rows.flatMap((row) => row.map((value, index) => createSchemaField(columns[index], value))); |
no outgoing calls
no test coverage detected