Queries the SQLite system catalog to retrieve all user-created tables
in the database. This is useful for schema inspection, validation,
and debugging purposes.
Parameters
d1: D1Database
The D1 database instance to inspect
Returns Promise<string[]>
Promise resolving to array of table names, sorted alphabetically
Throws
Returns empty array if query fails or database is inaccessible
Queries the SQLite system catalog to retrieve all user-created tables in the database. This is useful for schema inspection, validation, and debugging purposes.