主权项 |
1. A system for database view generation, the system comprising:
at least one processor; a non-transitory computer-readable storage medium including instructions executable by the at least one processor, the instructions configured to implement, a view generator configured to generate a database view for one or more database tables, the view generator including a generation module configured to determine a generation template for the database view, the generation template being a code structure describing a manner in which the database view is created, the code structure not referencing a database name of the one or more database tables, the generation module configured to invoke a code composer to insert code commands into the generation template to build a structured query language (SQL) statement for the database view, the SQL statement referencing the database name of the one or more database tables, wherein the view generator is configured to create the database view based on the SQL statement. |