Skip to content

An ESM/CommonJS library following Oriented-Object Programming pattern to manager a MySQL connection.

License

Notifications You must be signed in to change notification settings

piggly-dev/js-mysql

Repository files navigation

MySQL Wrapper

Typescript NPM Software License

An ESM/CommonJS library following Oriented-Object Programming pattern to manager a MySQL connection.

Usage

This package is only a wrapper. Applying the @piggly/ddd-toolkit behavior to mysql2 library. May not be for every project or everyone. See unit testing for examples.

Changelog

See the CHANGELOG file for information about all code changes.

Testing the code

This library uses the Jest. Tests are made of integrations test. We carry out tests of all the main features of this application.

⚠️ You must install (https://github.com/datacharmer/test_db)[https://github.com/datacharmer/test_db] database on your MySQL instance.

cross-env JEST_MYSQL_USER=root JEST_MYSQL_PASSWORD=pass npm run test:once

Contributions

See the CONTRIBUTING file for information before submitting your contribution.

Credits

License

MIT License (MIT). See LICENSE.

About

An ESM/CommonJS library following Oriented-Object Programming pattern to manager a MySQL connection.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published