Method for dynamically generating databases on basis of template engines

A technology of dynamic generation and template engine, which is applied in the computer field, can solve problems such as increasing data volume, spending a lot of time on database operation interface code, and incomplete handover of operation interface, so as to improve development efficiency, achieve consistent operation, and improve flexibility Effect

Inactive Publication Date: 2017-06-13
王洋
View PDF5 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) In the case of a large amount of data, the amount of data involved in database table creation operations, data storage and query operations will also increase
[0006] (2) When the amount of data is uncertain or the amount of data often needs to be modified, developers need to spend a lot of time on modifying the database operation interface code
[0008] (4) When the amount of user data changes, developers need to re-modify the data processing and database operation codes, which directly reduces the user experience and the workload of developers
[0010] (1) Dynamic dat

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for dynamically generating databases on basis of template engines
  • Method for dynamically generating databases on basis of template engines
  • Method for dynamically generating databases on basis of template engines

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0043] In order to better show the technical solution of the present invention, the present invention will be further described below in conjunction with the accompanying drawings.

[0044] The technical solution of the present invention provides a method for dynamically generating, storing and operating a database based on a template engine. The technical problems to be solved are: how to dynamically generate, dynamically store and query the database; how to construct a unified model for data and perform unified Operation. The invention solves the unification of the data model and the dynamic generation, storage, query and other operation methods of the database through the combination of configuration file, template engine, interface and polymorphism, self-compilation and reflection, data conversion, database interface and other technologies.

[0045] The following explains and defines the conceptual terms and some technical procedures involved in the technical solution of the pr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for dynamically generating databases on the basis of template engines. The method is characterized by comprising parsing and packaging configuration information in configuration files to generate data information; dynamically creating the databases and database tables on the basis of the data information; transmitting the data information to data model templates and generating class files under the effects of the template engines; creating class objects on the basis of the class files and forcibly converting object types into interface types; designing operation interfaces of the databases by the aid of the data model templates and creating operation processes according to the interface types so as to operate the databases. The operation processes are used for invoking the operation interfaces. The method has the advantages that database generation, storage and inquiry can be unified and facilitated, and requirements on storing diversified data can be met.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for dynamically generating a database based on a template engine. Background technique [0002] Database technology was born in the late 1960s and early 1970s. Its main purpose is to effectively manage and access a large number of data resources. Database technology mainly studies how to store, use and manage data. Over the past few years, the development of database technology and computer network technology have mutually infiltrated and promoted each other, and have become two fields with rapid development and wide application in today's computer field. Database technology is not only applied to transaction processing, but also further applied to information retrieval, artificial intelligence, expert system, big data and other fields. Mainstream database systems include MySQL, MariaDB, MongoDB, HBase, Microsoft SQLServer, Oracle, DB2, etc. [0003] A database inte...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
Inventor 王洋叶周
Owner 王洋
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products