Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Deno
  3. deno_mysql

deno_mysql

MITTypeScriptv2.12.1

A MySQL and MariaDB database driver for Deno, enabling secure and efficient database interactions in Deno applications.

Visit WebsiteGitHubGitHub
264 stars64 forks0 contributors

What is deno_mysql?

deno_mysql is a MySQL and MariaDB database driver specifically built for the Deno runtime. It provides a secure and efficient way for Deno applications to interact with MySQL-compatible databases, offering features like connection pooling, TLS encryption, and transaction support. The driver enables developers to perform all standard database operations while adhering to Deno's security model.

Target Audience

Deno developers building backend applications, APIs, or services that require MySQL/MariaDB database connectivity. It's particularly useful for teams adopting Deno for new projects or migrating Node.js applications to Deno.

Value Proposition

Developers choose deno_mysql because it's the most mature and feature-complete MySQL driver for Deno, offering production-ready capabilities like connection pooling and TLS support. Its TypeScript-first design and alignment with Deno's security model make it a reliable choice for building secure database-driven applications in Deno.

Overview

MySQL driver for Deno

Use Cases

Best For

  • Building Deno backend services that require MySQL database connectivity
  • Migrating Node.js applications with MySQL dependencies to Deno
  • Developing secure Deno APIs with encrypted database connections
  • Creating data-intensive Deno applications with connection pooling needs
  • Implementing transactional data operations in Deno applications
  • Working with large MySQL result sets efficiently in Deno

Not Ideal For

  • Applications using non-MySQL databases like PostgreSQL or MongoDB
  • Teams wanting built-in ORM with model definitions and automatic relationship handling
  • Projects that must run in Node.js environments or depend heavily on npm packages
  • Legacy systems requiring synchronous database operations rather than async-first patterns

Pros & Cons

Pros

Secure TLS Integration

Supports configurable TLS modes including identity verification and custom certificate authorities, ensuring encrypted database communication as per Deno's security model.

Efficient Connection Pooling

Built-in pool management with adjustable size optimizes resource usage and performance for concurrent operations, demonstrated in the connect pool example.

Flexible Result Handling

Offers both standard query execution and iterator-based methods for large datasets, allowing efficient streaming of rows to prevent memory overload.

Comprehensive Transaction Support

Provides full ACID transaction capabilities with a clean, promise-based API, enabling reliable data integrity in complex operations.

Cons

Deno-Only Runtime Limitation

Exclusively tied to Deno, making it incompatible with Node.js projects and limiting use in environments where Deno adoption is low.

Limited Ecosystem Maturity

Compared to Node.js MySQL drivers, it has fewer community resources, third-party tools, and integrations, which can hinder advanced development.

Manual TLS Setup Complexity

Requires explicit configuration for custom certificates, such as reading PEM files, adding overhead compared to drivers with automated certificate management.

Frequently Asked Questions

Quick Stats

Stars264
Forks64
Contributors0
Open Issues21
Last commit2 years ago
CreatedSince 2019

Tags

#orm#database#tls#deno#mysql-driver#connection-pool#typescript#mariadb#backend#sql

Built With

D
Deno
T
TypeScript

Links & Resources

Website

Included in

Deno4.4k
Auto-fetched 9 hours ago

Related Projects

denodbdenodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

Stars1,919
Forks128
Last commit2 years ago
postgrespostgres

PostgreSQL driver for Deno

Stars655
Forks97
Last commit1 year ago
nessienessie

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations

Stars519
Forks31
Last commit2 years ago
deno_mongodeno_mongo

🍃 MongoDB driver for Deno 🦕

Stars511
Forks89
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub