
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
any-db-mysql
Advanced tools
This is the MySQL adapter for Any-DB. It relies on the mysql
database driver to create connection and query objects that conform to the
Any-DB API. It's almost
identical to require('mysql')
but lets your app code be somewhat more
database agnostic.
The connections and queries this package creates inherit from the constructor
functions in require('mysql')
, so any methods that mysql
supports beyond
those specified by Any-DB are also available to you.
Keep in mind that these methods will not necessarily work with other backends.
npm install any-db-mysql
Create an empty test database:
mysql -uroot -e 'CREATE DATABASE IF NOT EXISTS any_db_test'
Then run tests the node way:
npm install && npm test
MIT
FAQs
The MySQL adapter for any-db
The npm package any-db-mysql receives a total of 521 weekly downloads. As such, any-db-mysql popularity was classified as not popular.
We found that any-db-mysql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.