<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ranak Debnath</title>
    <description>The latest articles on DEV Community by Ranak Debnath (@ranak_debnath_b78c564d6ac).</description>
    <link>https://dev.to/ranak_debnath_b78c564d6ac</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2993039%2Feba484ef-4ebd-4847-8cf8-2e4f4a4a2554.jpg</url>
      <title>DEV Community: Ranak Debnath</title>
      <link>https://dev.to/ranak_debnath_b78c564d6ac</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ranak_debnath_b78c564d6ac"/>
    <language>en</language>
    <item>
      <title>Tired of writing repetitive MySQL code in Node.js? Here’s a simple helper I built! - mysql2-helper-lite</title>
      <dc:creator>Ranak Debnath</dc:creator>
      <pubDate>Sun, 30 Mar 2025 07:41:47 +0000</pubDate>
      <link>https://dev.to/ranak_debnath_b78c564d6ac/ired-of-writing-repetitive-mysql-code-in-nodejs-heres-a-simple-helper-i-built--3d18</link>
      <guid>https://dev.to/ranak_debnath_b78c564d6ac/ired-of-writing-repetitive-mysql-code-in-nodejs-heres-a-simple-helper-i-built--3d18</guid>
      <description>&lt;p&gt;🚀 Introducing mysql2-helper-lite – A Lightweight MySQL Helper for Node.js Developers!&lt;/p&gt;

&lt;p&gt;I’m excited to launch mysql2-helper-lite, a powerful yet lightweight helper library designed to simplify database operations with mysql2/promise. If you’re tired of writing repetitive SQL queries and managing complex transactions manually, this package is for you!&lt;/p&gt;

&lt;p&gt;🔥 Why Use mysql2-helper-lite?&lt;/p&gt;

&lt;p&gt;✅ Less Boilerplate Code – Perform database operations with simple function calls instead of writing raw SQL.&lt;br&gt;
✅ Easy Insert &amp;amp; Update – Pass objects directly to insert or update queries, no need to manually write field names.&lt;br&gt;
✅ Automatic Joins – Easily join related tables without writing complex SQL joins.&lt;br&gt;
✅ Transaction Handling – Execute multiple queries in a single transaction with built-in rollback support.&lt;br&gt;
✅ Audit Logging – Keep track of changes with automatic audit logs.&lt;br&gt;
✅ Auto-generate REST APIs – Create APIs in seconds with Express integration.&lt;/p&gt;

&lt;p&gt;🛠️ Installation &amp;amp; Usage&lt;/p&gt;

&lt;p&gt;Install via NPM:&lt;/p&gt;

&lt;p&gt;npm install mysql2-helper-lite&lt;/p&gt;

&lt;p&gt;Example Usage:&lt;/p&gt;

&lt;p&gt;const db = require('mysql2-helper-lite');&lt;/p&gt;

&lt;p&gt;// Insert a record&lt;br&gt;
await db.insert('users', { name: 'John Doe', email: '&lt;a href="mailto:john@example.com"&gt;john@example.com&lt;/a&gt;' });&lt;/p&gt;

&lt;p&gt;// Fetch data with conditions&lt;br&gt;
const users = await db.select('users', { where: { email: '&lt;a href="mailto:john@example.com"&gt;john@example.com&lt;/a&gt;' } });&lt;/p&gt;

&lt;p&gt;console.log(users);&lt;/p&gt;

&lt;p&gt;This package is designed for developers who value efficiency and want to focus on building features rather than handling repetitive database queries.&lt;/p&gt;

&lt;p&gt;Check it out &amp;amp; let me know your thoughts!&lt;br&gt;
🔗 Git-&lt;a href="https://github.com/piyaldeb/mysql2-helper-lite" rel="noopener noreferrer"&gt;https://github.com/piyaldeb/mysql2-helper-lite&lt;/a&gt;&lt;br&gt;
Npm - &lt;a href="https://www.npmjs.com/package/mysql2-helper-lite" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/mysql2-helper-lite&lt;/a&gt;&lt;br&gt;
📦 npm install mysql2-helper-lite&lt;/p&gt;

&lt;h1&gt;
  
  
  NodeJS #MySQL #NPM #WebDevelopment #OpenSource #DatabaseOptimization
&lt;/h1&gt;

</description>
      <category>programming</category>
      <category>mysql</category>
      <category>npm</category>
      <category>node</category>
    </item>
  </channel>
</rss>
