MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / createDbField

Function createDbField

test/nodeGraph/lookup.node.test.ts:21–32  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

19});
20
21const 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
34const createTableSelection = (tableName: string, columns: string[], rows: Array<Array<string | number>>) => {
35 const schemaFields = rows.flatMap((row) => row.map((value, index) => createSchemaField(columns[index], value)));

Callers 1

createTableSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected