sequelize
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and more.
22 lines (21 loc) • 501 B
JavaScript
const stores = /* @__PURE__ */ new Map();
module.exports = (dialect) => {
if (!stores.has(dialect)) {
stores.set(dialect, /* @__PURE__ */ new Map());
}
return {
clear() {
stores.get(dialect).clear();
},
refresh(dataType) {
for (const type of dataType.types[dialect]) {
stores.get(dialect).set(type, dataType.parse);
}
},
get(type) {
return stores.get(dialect).get(type);
}
};
};
//# sourceMappingURL=parserStore.js.map
;