The invention relates to a
database quick reading method. Operation involving
database reading / writing is divided into four
processing layers, which are a
data type analysis layer, an object
data layout layer, an
SQL statement generation layer and a
database operation layer in sequence; the
data type analysis layer is used for performing type analysis of a variable in a class, performing type analysis of a variable in a parameter, and generating a variable type and database type mapping table; the object
data layout layer is used for establishing variable type and database type mapping, generating a variable type and variable
data mapping table, and constructing required information of a database table; the
SQL statement generation layer is used for expanding the class into a
database model, generating a database expansion model and generating an
SQL statement according to the
database model or the database expansion model; and the database operation layer is used for executing corresponding operation according to the generated SQL statement and feeding back an executive result. A corresponding
processing task is set according to the operation; the operation is standardized and processized; a standardized module with high universality is formed; the compatibility and reliability of an
algorithm are improved; and debugging and maintenance are facilitated.