You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArteMerlow edited this page May 28, 2025
·
1 revision
Information schema
The library also supports working with INFORMATION_SCHEMA.TABLES and INFORMATION_SCHEMA.COLUMNS. Interaction with tables is done through the InformationSchema class, and with columns — through the InformationSchemaColumns.
// If TABLE_SCHEMA and TABLE_NAME are provided, a ANALIZE TABLE query is automatically executedconstresults : InformationSchemaResult[]=InformationSchema.select({TABLE_SCHEMA: `ur_database_name`,TABLE_NAME: `ur_table_name`// As string only})if(results.length<1)return;constnextAutoincrementID=results[0].autoIncrement;