A TypeScript-based autocomplete engine for MySQL queries. Current stable version is 0.0.2 (release cadence: low, as it is a minor version). It autocompletes keywords, table names, and column names, supports all MySQL versions, and integrates with database schemas. Differentiators: grammar-complete via ANTLR4, ships TypeScript types, and is part of a suite of related MySQL tools. It does not require a running MySQL server.
npm install ts-mysql-autocompleteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic instantiation of MySQLAutocomplete and autocomplete calls with and without a schema.
Pin to current version or monitor releases for breaking changes.
Ensure schema object has 'tables' array with 'name' and 'columns' properties.
Always provide a valid number for cursor position (0-indexed).
Ensure the query string is complete up to cursor position for accurate suggestions.
Install the package with npm install ts-mysql-autocomplete and ensure tsconfig.json includes 'node_modules/@types' or 'skipLibCheck' is set to true.
Upgrade to version 0.0.2 or later, or avoid using that type if not needed.
Use correct import: import { MySQLAutocomplete } from 'ts-mysql-autocomplete'.No dependency data recorded yet.