2026-02-17 12:05:56 -05:00
|
|
|
import chalk from 'chalk';
|
2026-03-11 19:18:45 -04:00
|
|
|
import { db, ClosePool } from '../src/db/index.ts';
|
2026-03-19 22:18:06 -04:00
|
|
|
import * as Indexing from './pokemon-helper.ts';
|
2026-02-17 12:05:56 -05:00
|
|
|
|
|
|
|
|
|
2026-03-19 22:18:06 -04:00
|
|
|
//await Indexing.createCardCollection();
|
|
|
|
|
//await Indexing.createSkuCollection();
|
2026-04-02 19:24:51 -04:00
|
|
|
await Indexing.createInventoryCollection();
|
|
|
|
|
|
|
|
|
|
//await Indexing.upsertCardCollection(db);
|
|
|
|
|
//await Indexing.upsertSkuCollection(db);
|
|
|
|
|
await Indexing.upsertInventoryCollection(db);
|
2026-03-12 08:18:40 -04:00
|
|
|
await ClosePool();
|
|
|
|
|
console.log(chalk.green('Pokémon reindex complete.'));
|