A TypeScript language service plugin that enhances SQL tagged template literals with autocomplete, hover documentation, and diagnostics for MySQL syntax. Works with table and column names from a database schema to provide type-checking and error detection. Compatible with TypeScript 2.3+, integrated into editors that support TS plugins (VS Code, Sublime Text, Atom). Version 1.0.1 is the latest, with no recent updates; the project appears stable but low maintenance. Alternatives include general SQL plugins like sql-formatter or other database-specific TS plugins.
npm install ts-mysql-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setup in tsconfig.json and usage with SQL tagged template literal. Basic configuration with database URI and custom tags.
Add to tsconfig.json plugins array, not import.
Add 'tags' array with the exact tag names used in your code.
Provide a valid MySQL connection URI or disable schema features.
Check compatibility with your TypeScript version or consider alternatives.
Run 'yarn add --dev ts-mysql-plugin' or 'npm install --save-dev ts-mysql-plugin' and ensure tsconfig.json is in the project root.
Check that template literal uses exact tag 'SQL' or 'sql', or configure custom tags in tsconfig. Remove '@ts-mysql-plugin ignore' comment if present.
Ensure TypeScript >= 2.3, and that tsconfig.json has 'compilerOptions.plugins' with name 'ts-mysql-plugin'.
No dependency data recorded yet.