{"repo":"max-programming/drizzle-query-logger","free":true,"listed":false,"github":"https://github.com/max-programming/drizzle-query-logger","clone":"git clone https://github.com/max-programming/drizzle-query-logger.git","description":"A beautiful, enhanced logger for Drizzle ORM that transforms your SQL queries into visually appealing, color-coded output with syntax highlighting, icons, and detailed formatting.","language":"TypeScript","stars":169,"topics":["drizzle","drizzle-orm","logger","logging","query","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"🎨 drizzle-query-logger A beautiful, enhanced logger for Drizzle ORM that transforms your SQL queries into visually appealing, color-coded output with syntax highlighting, icons, and detailed formatting. ✨ Features - 🎨 Beautiful formatting with box-drawing characters and colors - 🔍 SQL syntax highlighting with keyword colorization - 📊 Query type detection with specific colors and icons - 🏷️ Table name extraction and highlighting - 📝 Parameter formatting with type-specific colors - ⏰ Timestamps for each query - 🔢 Query numbering to track execution order - ⚙️ Configurable logging output 📦 Installation 📸 Before vs After Before (Default Drizzle Logger) After (Enhanced Query Logger) See the dramatic difference! The enhanced logger transforms plain SQL output into beautifully formatted, color-coded queries with syntax highlighting, icons, and structured parameter display. 🚀 Usage Basic Usage With Custom Logger Function 🎯 Query Types & Icons The logger automatically detects and styles different query types: Query Type Icon Color ------------ ------ -------- SELECT 🔍 Green INSERT 📝 Blue UPDATE ✏️ Yellow DELETE 🗑️ Red CREATE 🏗️ Magenta DROP 💥 Red ALTER 🔧 Cyan OTHER ⚡ White 🛠️ Configuration Constructor Options - log : Custom logging function (default: console.log ) Example with Custom Configuration 🎨 Color Scheme The logger uses a carefully chosen color scheme for optimal readability: - Keywords : Blue (SELECT, FROM, WHERE, etc.) - Strings : Green - Numbers : Cyan - B","default_branch":null,"files":null,"tree":[],"storefront":"/r/max-programming","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/max-programming/drizzle-query-logger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}