Various wrapper classes I use in my projects
Go to file
2023-07-03 16:28:42 +03:00
scripts support both cjs and esm 2023-04-12 22:12:03 +03:00
src fixes 2023-06-18 16:30:58 +03:00
tests more typings 2023-05-08 18:16:26 +03:00
.eslintrc.json files 2023-04-12 14:23:41 +03:00
.gitignore dear lord the amount of nesting 2023-05-03 00:59:06 +03:00
index.ts export mongo collection 2023-05-15 15:03:02 +03:00
LICENSE Initial commit 2023-04-12 10:34:41 +02:00
package.json v1.4.2 2023-07-03 16:28:42 +03:00
README.md files 2023-04-12 14:23:41 +03:00
tsconfig.cjs.json support both cjs and esm 2023-04-12 22:12:03 +03:00
tsconfig.json support both cjs and esm 2023-04-12 22:12:03 +03:00
yarn.lock files 2023-04-12 14:23:41 +03:00

wrappers

Various wrapper classes I use in my projects.
These are specifically written for my use cases, though feel free to use.

MessageBroker: Wraps amqp-connection-manager and amqplib by extension. Ensures smooth failover when connected to a cluster.
MariaDB: Wraps mysql. Takes care of connection pooling whether connecting to a cluster or single instance.
MongoDB: Wraps mongodb. Primarily just adds helper functions.

Expected to be used together with a parent class that has a createLogger method, as defined in /src/interfaces/Server.ts and /src/interfaces/Logger.ts, utilising the logger from https://git.corgi.wtf/Navy.gif/logger.