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

Function getDBVersion

src/packFileSerializer.ts:689–696  ·  view source on GitHub ↗
(packFile: PackedFile)

Source from the content-addressed store, hash-verified

687 return dbversion;
688};
689export const getDBVersion = (packFile: PackedFile) => {
690 if (packFile.name.endsWith(".loc")) return LocVersion;
691 // console.log("GETTING DB VERSION FOR", packFile.name);
692 const dbName = getDBName(packFile);
693 // console.log("GETTING DB VERSION, DBNAME IS", dbName);
694 if (!dbName) return;
695 return getDBVersionByTableName(packFile, dbName);
696};
697export const chunkSchemaIntoRows = (schemaFields: SchemaField[], dbversion: DBVersion) => {
698 return (
699 schemaFields?.reduce<SchemaField[][]>((resultArray, item, index) => {

Callers 10

getTableRowDataFunction · 0.90
registerIpcMainListenersFunction · 0.90
getPacksTableDataFunction · 0.70
getPackViewDataFunction · 0.70
createOverwritePackFunction · 0.70

Calls 2

getDBNameFunction · 0.90
getDBVersionByTableNameFunction · 0.85

Tested by

no test coverage detected