@lbu/code-gen
Version:
Generate various boring parts of your server
16 lines (14 loc) • 655 B
JavaScript
// This file is a bit of a hack.
// This allows external tooling at some point to use the structure in the same way as the
// code-generator does. For now we keep this a secret, ssssh, but it is already used in
// @lbu/cli for the visualisation tools.
export { exitOnErrorsOrReturn } from "./generator/errors.js";
export { linkupReferencesInStructure } from "./generator/linkup-references.js";
export { buildTrie } from "./generator/router/trie.js";
export { addFieldsOfRelations } from "./generator/sql/add-fields.js";
export {
getQueryEnabledObjects,
doSqlChecks,
getSortedKeysForType,
getPrimaryKeyWithType,
} from "./generator/sql/utils.js";