Skip to content

Instantly share code, notes, and snippets.

View Aborii's full-sized avatar

Abdullah Almofleh Aborii

View GitHub Profile
{"name":"NestJs & NextJs","icon":"briefcase","settings":"{\"settings\":\"{\\r\\n // cSpell: disable\\r\\n /* -------------------------------------------------------------------------- */\\r\\n /* // ? General */\\r\\n /* -------------------------------------------------------------------------- */\\r\\n \\\"breadcrumbs.symbolPath\\\": \\\"off\\\",\\r\\n \\\"emmet.showSuggestionsAsSnippets\\\": true,\\r\\n \\\"problems.showCurrentInStatus\\\": true,\\r\\n\\r\\n /* ------------------------------- // ? Window ------------------------------ */\\r\\n \\\"window.title\\\": \\\"${rootName}${separator}${dirty}${activeEditorMedium}\\\",\\r\\n \\\"window.commandCenter\\\": false,\\r\\n \\\"workbench.sideBar.location\\\": \\\"right\\\",\\r\\n \\\"workbench.editor.pinnedTabsOnSeparateRow\\\": true,\\r\\n \\\"workbench.editor.customLabels.patterns\\\": {\\r\\n \\\"**/*.service.ts\\\": \\\"${filename} - Service\\\",\\r\\n \\\"**/*.service.spec
@Aborii
Aborii / README.md
Last active December 3, 2025 08:01
TypeOrm Sql query with Parameter embeded

TypeORM Query Builder SQL Extractor

A utility function to extract complete SQL statements from TypeORM QueryBuilder instances with all parameters substituted.

Overview

When working with TypeORM's QueryBuilder, you often need to see the complete SQL query with all parameters substituted for debugging, logging, or analysis purposes. This utility function converts a TypeORM SelectQueryBuilder into a complete SQL string with all parameters properly substituted.

Features