Drizzle Query Logger

screenshot of Drizzle Query Logger
drizzle-orm

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.

Overview

The Drizzle Query Logger is a game-changer for anyone utilizing Drizzle ORM. It takes your SQL queries and transforms the plain text output into beautifully formatted, color-coded displays that enhance readability and comprehension. This enhanced logger not only elevates the visual appeal of SQL queries but also includes many useful features that make it a must-have tool for developers who value clarity in their logging process.

With its rich syntax highlighting, various icons, and detailed formatting, the Drizzle Query Logger makes it easier to parse and understand complex queries at a glance. Whether you are debugging or just reviewing your application's database interactions, this logger can significantly streamline your workflow.

Features

  • Beautiful Formatting: Utilizes box-drawing characters and colors for a visually appealing output.
  • SQL Syntax Highlighting: Keywords are color-coded for easier identification, improving clarity when reading queries.
  • Query Type Detection: Automatically identifies and visually distinguishes different types of SQL queries with appropriate colors and icons.
  • Table Name Extraction: Extracts and highlights table names, making it easy to understand which tables are involved in your queries.
  • Parameter Formatting: Parameters are color-coded according to their type, providing an organized view of the data being handled.
  • Timestamps: Each query is logged with a timestamp, allowing for better tracking of query execution times.
  • Configurable Logging Output: Customize the logging function to fit your preferred output methods.
  • TypeScript Support: Fully supports TypeScript, ensuring type definitions are in place for a smoother development experience.
drizzle-orm
Drizzle ORM

Drizzle ORM is a TypeScript ORM for SQL databases designed with maximum type safety in mind. It comes with a drizzle-kit CLI companion for automatic SQL migrations generation. Drizzle ORM is meant to be a library, not a framework. It stays as an opt-in solution all the time at any levels.