AI Table Structure to Code
AI Table Structure to Code generates code skeletons from database table structures, helping you quickly bootstrap models, entities, or data-access code.
Supported Data Sources
- MySQL-family data sources (PolarDB-X is not supported)
- Oracle
- OceanBase Oracle
- DaMeng
- HANA
- SQL Server
Before you begin
- Add the target data source to NineData.
- Open the SQL Console for the data source that contains the table.
- Use an account that can view the target table structure.
- Decide which programming language or code template you want to generate.
Procedure
- Open the SQL Console for the target data source.
- In the object tree on the left, locate the target table.
- Right-click the table, then click Generate Code.
- Choose the target programming language or code template.
- Review the generated code and refine it to match your project conventions.
Result
NineData generates a code skeleton from the selected table structure. Before using the code in a project, refine naming conventions, annotations, field mappings, serialization settings, validation rules, and data-access patterns.