- Rewrite JSDoc across all store methods to document the actual async methods (real params, returns, throws) instead of the internal wrappers - Split quote/order into individual module files backed by shared manifestDoc helpers; remove the createStore factory and thin wrappers - Deduplicate manifest line helpers into src/store/manifestLines.js - Extend generate-api-doc.js to render parameter/return/throws types and emit per-namespace API.<module>.md files with an API.md index - Regenerate all API docs
18 lines
377 B
JavaScript
18 lines
377 B
JavaScript
import { SCHEMA_SCRIPTS } from '../schema.js';
|
|
|
|
export default function initialize(pool) {
|
|
/**
|
|
* Initializes the database schema by running all schema scripts.
|
|
*
|
|
* @returns {Promise<void>}
|
|
*
|
|
* @example
|
|
* await store.initialize();
|
|
*/
|
|
return async () => {
|
|
for (const script of SCHEMA_SCRIPTS) {
|
|
await pool.request().query(script);
|
|
}
|
|
};
|
|
}
|