The AddTableName feature is designed to simplify the creation of database table structures within an Express.js project. Instead of manually creating schema folders, writing model files, and updating project configurations, the extension performs these operations automatically. The generated files follow a consistent folder structure, allowing developers to maintain clean and organized projects while significantly reducing repetitive setup work.
When the AddTableName command is launched from the Visual Studio Code title bar, the extension opens a dedicated interface where the developer can select an existing API and provide the required table name. This table name becomes the foundation for generating the corresponding schema files and related project components. Since the extension follows predefined project conventions, every generated file is placed in the correct location without requiring manual intervention.
After confirming the table name, the extension automatically creates the necessary folder structure and generates the required schema files. Any supporting boilerplate code needed by the selected API is also produced, ensuring that the new table is immediately ready for further implementation. This eliminates repetitive coding while maintaining a standardized architecture throughout the application.
| Stage | Description |
|---|---|
| Launch | Open the AddTableName command from the VS Code title bar. |
| Select API | Choose the API where the new database table should be created. |
| Enter Table Name | Provide the desired table name that will be used throughout the generated files. |
| Automatic Generation | The extension creates schema files, supporting boilerplate, and the required folder structure automatically. |
| Ready to Use | The generated table structure is immediately available for implementing business logic and database operations. |
Result: Within a few clicks, the extension creates a complete table structure, generates the required schema files, and integrates everything into the selected API. Developers can immediately begin implementing CRUD operations without spending time on repetitive project setup.
Project links and the marketplace listing.
| Resource | Link |
|---|---|
| GitHub Repository | https://github.com/keshavsoft/vs-code-ext-from-any-js |
| VS Code Marketplace | View Extension Marketplace Listing |