Detailed Description
The invention provides a database management method, a device, equipment and a storage medium, which are used for forwarding the operation of a terminal through a database forwarding interface to finish the operation of a database, so that the call flexibility of a database system is improved, and the working efficiency is improved.
In order to enable those skilled in the art to better understand the present invention, embodiments of the present invention will be described below with reference to the accompanying drawings.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, a flowchart of a database management method provided in an embodiment of the present invention specifically includes:
101. and receiving a database operation instruction sent by the terminal, wherein the database operation instruction is used for accessing the target database.
And the server receives a database operation instruction sent by the terminal, wherein the database operation instruction is used for accessing the target database. Wherein different database operation instructions correspond to different structured query language (structured query language, SQL) statements. The database operation instructions may include database query instructions, database modification instructions, database deletion instructions, and database addition instructions. For example, the database query instruction may be: select id from user where name = 'li si'; the database modification instruction may be: update user set name = 'wang wu' where id= '0002'; the database deletion instruction may be: delete from user where id = '0001'; the database augmentation instruction may be: insert inter user (id, name) values ('0003', 'Zhao Qian').
It should be noted that, in the embodiment of the present invention, the database operation instruction is an operation instruction set according to actual needs, and related operations are executed on the database.
It is to be understood that the execution subject of the present invention may be a database management device, a terminal or a server, and is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
102. Analyzing the database operation instruction to generate target parameters, wherein the target parameters comprise a database connection string, a database account number, a database password and a structured query language SQL sentence.
The server analyzes the database operation instruction to obtain target parameters, wherein the target parameters comprise a database connection string, a database account number, a database password and a structured query language SQL sentence.
It will be appreciated that the target parameters may include, in addition to a database connection string, a database account number, a database password, and a structured query language SQL statement, where the database connection string is represented by a uniform resource locator (uniform resource locator, URL), and URL has the same meaning in this embodiment; the database account number is represented by a user, the database password is represented by a passwd, and the SQL statement is represented by content; the target parameters may also include other parameters, such as a specified parameter name (params), a parameter value (values), etc., and are not limited in particular herein.
For example, when the target parameters include only a database connection string (url), a database account number (user), a database password (passwd), and a structured query language SQL statement (content), the specific contents are as follows:
the specific structure of the database connection string is that,
url:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.4.4.197)(PORT=1539))(CONNECT_DATA=(SID=t0phacp)));
the specific structure of the database account number is user: admin;
the specific structure of the database password is that the password is 123456;
the specific structure of the structured query language sentence is content select id from user where name = 'Lifour'.
And when the target parameter also comprises the parameters of variable params and value values, the specific contents are as follows:
the specific structure of the database connection string is that,
url:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.4.4.197)(PORT=1539))(CONNECT_DATA=(SID=t0phacp)));
the specific structure of the database account number is user: admin;
the specific structure of the database password is that the password is 123456;
the specific structure of the structured query language statement is content select id from user where name = '# { name }' and age= '# { age }';
the specific structure of the variable is params, name & age;
the specific structure of the values is that the values are [ { 'Lifour', 27}, { 'Wangwu', 25} ].
103. And deploying the database forwarding interface according to the target parameters.
The server deploys the database forwarding interface according to the target parameters. Specifically, the server calls a preset spring MVC frame to build a WEB environment; the method comprises the steps that a server creates an initial interface in a controller layer of a controller of a preset spring framework; the server takes the database connection string, the database account number, the database password and the SQL sentence as the parameters of the initial interface to create a database forwarding interface; and the server calls a preset mapping configuration mybatis framework to deploy the database forwarding interface.
Among them, spring model view controller (spring model view controller, spring MVC) is a development framework for developing web engineering. Integration spring, mybatis framework is also required during development. The interface service is developed by using spring+spring MVC+mybatis, and the general process is as follows: an interface is developed in the controller layer, an execution method is developed for the interface, and processing codes are written in the method, so that the codes realize logic for operating a database. The transmitted database connection string, database account number, database password and SQL sentence are used as entry parameters, the entry parameters are used in the code to establish database connection and operation, and then the operation result is returned to the calling party.
For example, a database connection string refers to a string of characters:
(database= (address= (process=tcp) (host= 30.4.4.197) (port=1539)) (connect_data= (sid=t0phacp))), the database connection string identifying the IP, PORT, database of the connected server.
It should be noted that the format types include jessen format, list format, and/or array format. The specific format is as follows: json format, such as { "msg": "success", "flag": "1" }; list format, such as [ {3,6}, {2,11}, {4,6} ]; array formats, e.g. 4,7,2,5
For example, assuming that the values of the msg and flag fields in the database table now need to be checked, then an entry in json format { "msg": "success", "flag": "1" }; assuming that it is now necessary to query the data in the database table when the values of flag1 and flag2 are different combinations, a List may be entered: [ {3,6}, {2,11}, {4,6} ]; assuming that the data in the database table when the values of the flag fields are different values are required to be queried, an array [4,7,2,5] can be transmitted; according to the different types of the input parameters, the database service interface can perform corresponding analysis and give the parameter values to SQL sentences for operation.
104. And sending the database operation instruction to the target database through the database forwarding interface.
The server sends the database operation instruction to the target database through the database forwarding interface. Specifically, when the server invokes the database forwarding interface service, for different types of incoming parameters, the field names to be received by the values of the incoming parameters are designated at the same time of incoming, so that the values are assigned to corresponding variables in sequence by the background. For example, two parameter names of [ {3,6}, {2,11}, {4,6} ], and two parameter names of the flag1 and the flag2 are simultaneously introduced, so that in the background, three groups of values of {3,6}, {2,11}, and {4,6} are sequentially introduced into the flag1 and the flag2 respectively. Assuming that this is a query statement, the query statement is executed 3 times by the target database, and the query condition is that flag1 and flag2 respectively take the three sets of values.
It should be noted that, when supporting connection, an execution statement may be transferred in, that is, when the database forwarding interface is called to forward, an operation statement to be applied to the target database is also transferred in as a parameter, so that the forwarding interface returns not only a connect object but also an operation result. Support the addition, deletion, querying, modification and storage of data in the operational database while forwarding.
It can be appreciated that the forwarding process is not only forwarding, but also needs to encapsulate database objects, develop control layer, service layer, and persistence layer logic, so that parameter expansion can be flexibly supported, and the method is not limited herein.
105. Feedback data of the target database is received.
The server receives feedback data of the target database. It should be noted that, a plurality of database instructions sent by the server may be performed simultaneously. For example, the server may receive multiple database operation instructions from multiple users' terminals at the same time, and then the server may initiate the addition, deletion, query, modification, and storage operations on different (or the same) databases, each of which may be performed at the same time.
For example, if the database operation instruction is used to find "identity information of the plum four" in the target database, the information of the identity card number, the age, the issuing authority, the native place, etc. of the "plum four" is extracted in the target database and packaged into a feedback data packet.
According to the embodiment of the invention, the database forwarding interface is deployed on the server, and the operation of the terminal is forwarded through the database forwarding interface, so that the problem that the database and the terminal cannot be directly communicated is solved, the operation of the database is realized, the call flexibility of the system is improved, and the working efficiency is improved.
Referring to fig. 2, another flowchart of a database management method according to an embodiment of the present invention specifically includes:
201. and receiving a database operation instruction sent by the terminal, wherein the database operation instruction is used for accessing the target database.
And the server receives a database operation instruction sent by the terminal, wherein the database operation instruction is used for accessing the target database. Wherein different database operation instructions correspond to different structured query language (structured query language, SQL) statements. The database operation instructions may include database query instructions, database modification instructions, database deletion instructions, and database addition instructions. For example, the database query instruction may be: select id from user where name = 'li si'; the database modification instruction may be: update user set name = 'wang wu' where id= '0002'; the database deletion instruction may be: delete from user where id = '0001'; the database augmentation instruction may be: insert inter user (id, name) values ('0003', 'Zhao Qian').
It should be noted that, in the embodiment of the present invention, the database operation instruction is an operation instruction set according to actual needs, and related operations are executed on the database.
It is to be understood that the execution subject of the present invention may be a database management device, a terminal or a server, and is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
202. Analyzing the database operation instruction to generate target parameters, wherein the target parameters comprise a database connection string, a database account number, a database password and a structured query language SQL sentence.
The server analyzes the database operation instruction to obtain target parameters, wherein the target parameters comprise a database connection string, a database account number, a database password and a structured query language SQL sentence. It will be appreciated that the target parameters may include, in addition to a database connection string, a database account number, a database password, and a structured query language SQL statement, where the database connection string is represented by a uniform resource locator (uniform resource locator, URL), and URL has the same meaning in this embodiment; the database account number is represented by a user, the database password is represented by a passwd, and the SQL statement is represented by content; the target parameters may also include other parameters, such as a specified parameter name (params), a parameter value (values), etc., and are not limited in particular herein.
For example, when the target parameters include only a database connection string (url), a database account number (user), a database password (passwd), and a structured query language SQL statement (content), the specific contents are as follows:
the specific structure of the database connection string is that,
url:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.4.4.197)(PORT=1539))(CONNECT_DATA=(SID=t0phacp)));
the specific structure of the database account number is user: admin;
the specific structure of the database password is that the password is 123456;
the specific structure of the structured query language sentence is content select id from user where name = 'Lifour'.
And when the target parameter also comprises the parameters of variable params and value values, the specific contents are as follows:
the specific structure of the database connection string is that,
url:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.4.4.197)(PORT=1539))(CONNECT_DATA=(SID=t0phacp)));
the specific structure of the database account number is user: admin;
the specific structure of the database password is that the password is 123456;
the specific structure of the structured query language statement is content select id from user where name = '# { name }' and age= '# { age }';
the specific structure of the variable is params, name & age;
the specific structure of the values is that the values are [ { 'Lifour', 27}, { 'Wangwu', 25} ].
203. And deploying the database forwarding interface according to the target parameters.
The server deploys the database forwarding interface according to the target parameters. Specifically, the server calls a preset spring MVC frame to build a WEB environment; the method comprises the steps that a server creates an initial interface in a controller layer of a preset spring framework; the server takes the database connection string, the database account number, the database password and the SQL sentence as the parameters of the initial interface to create a database forwarding interface; and the server calls a preset mybatis framework to deploy the database forwarding interface.
Among them, spring MVC is a development framework for developing web engineering. Integration spring, mybatis framework is also required during development. The interface service is developed by using spring+spring MVC+mybatis, and the general process is as follows: an interface is developed in the controller layer, an execution method is developed for the interface, and processing codes are written in the method, so that the codes realize logic for operating a database. The transmitted database connection string, database account number, database password and SQL sentence are used as entry parameters, the entry parameters are used in the code to establish database connection and operation, and then the operation result is returned to the calling party.
For example, a database connection string refers to a string of characters:
(database= (address= (process=tcp) (host= 30.4.4.197) (port=1539)) (connect_data= (sid=t0phacp))), the database connection string represents the IP, PORT, database of connected servers.
The server takes a database connection string, a database account number, a database password and an SQL sentence as parameters of an initial interface to obtain a database forwarding interface, and the method comprises the following steps: the server determines the format type according to the specification of the initial interface, wherein the format type comprises json format, list format and/or array format; the server determines a first format type corresponding to the database connection string, a second format type corresponding to the database account, a third format type corresponding to the database password and a fourth format type corresponding to the SQL sentence in the preset data types; the server performs format conversion on the database connection string, the database account number, the database password and the SQL sentence based on the first format type, the second format type, the third format type and the fourth format type; the server creates a database forwarding interface based on the converted database connection string, the converted database account number, the converted database password, and the converted SQL statement.
It should be noted that the format types include json format, list format, and tuple format. The specific format is as follows: json format, such as { "msg": "success", "flag": "1" }; list format, such as [ {3,6}, {2,11}, {4,6} ]; array formats, e.g. 4,7,2,5
For example, assuming that the values of the msg and flag fields in the database table now need to be checked, then an entry in json format { "msg": "success", "flag": "1" }; assuming that it is now necessary to query the data in the database table when the values of flag1 and flag2 are different combinations, a List may be entered: [ {3,6}, {2,11}, {4,6} ]; assuming that the data in the database table when the values of the flag fields are different values are required to be queried, an array [4,7,2,5] can be transmitted; according to the different types of the input parameters, the database service interface can perform corresponding analysis and give the parameter values to SQL sentences for operation.
204. A network connection is established between the database forwarding interface and the target database.
The server establishes a network connection between the database forwarding interface and the target database. Specifically, the server determines an IP address and a network port according to the database connection string; the server determines the name of the database according to the IP address and the network port; the server logs in a target database corresponding to the database name through the database account number and the database password; the server generates a connect object of the target database; the server establishes network connection with the database forwarding interface through the connect object; the server feeds back a connection success message to the terminal, wherein the connection success message is used for indicating that the database forwarding interface is successfully connected to the target database.
Optionally, after the server establishes network connection with the database forwarding interface through the connect object, before the server feeds back a connection success message to the terminal, the connection success message is used to indicate that the database forwarding interface is successfully connected to the target database, the method further includes: the server judges whether the waiting time length exceeds a preset time length; if the waiting time exceeds the preset time, the server reinitiates the network connection request between the database forwarding interface and the target database.
205. And sending the database operation instruction to the target database through the database forwarding interface.
The server sends the database operation instruction to the target database through the database forwarding interface. Specifically, when the server invokes the database forwarding interface service, for different types of incoming parameters, the field names to be received by the values of the incoming parameters are designated at the same time of incoming, so that the values are assigned to corresponding variables in sequence by the background. For example, two parameter names of [ {3,6}, {2,11}, {4,6} ], and two parameter names of the flag1 and the flag2 are simultaneously introduced, so that in the background, three groups of values of {3,6}, {2,11}, and {4,6} are sequentially introduced into the flag1 and the flag2 respectively. Assuming that this is a query statement, the query statement is executed 3 times by the target database, and the query condition is that flag1 and flag2 respectively take the three sets of values.
It should be noted that, when supporting connection, an execution statement may be transferred in, that is, when the database forwarding interface is called to forward, an operation statement to be applied to the target database is also transferred in as a parameter, so that the forwarding interface returns not only a connect object but also an operation result. Support the addition, deletion, querying, modification and storage of data in the operational database while forwarding.
It can be appreciated that the forwarding process is not only forwarding, but also needs to encapsulate database objects, develop control layer, service layer, and persistence layer logic, so that parameter expansion can be flexibly supported, and the method is not limited herein.
206. Feedback data of the target database is received.
The server receives feedback data of the target database. It should be noted that, a plurality of database instructions sent by the server may be performed simultaneously. For example, the server may receive multiple database operation instructions from multiple users' terminals at the same time, and then the server may initiate the addition, deletion, query, modification, and storage operations on different (or the same) databases, each of which may be performed at the same time.
The embodiment of the invention solves the problem that the database and the control server cannot communicate directly, and the operation of the control server is forwarded through the database forwarding interface by deploying the database forwarding interface on the forwarding server, so that the access to the database is realized, the operation to the database is completed, the call flexibility of the system is increased, and the working efficiency is improved.
207. And checking the feedback data.
And the server checks the feedback data. Specifically, the server acquires an instruction execution identifier from feedback data; the server judges whether the instruction execution identification is matched with the identification of the database operation instruction; if the instruction execution identification is matched with the identification of the database operation instruction, the server determines that the database operation instruction is executed correctly and is checked to be qualified; if the instruction execution identification is not matched with the identification of the database operation instruction, the server determines that the database operation instruction is in error execution and is unqualified in verification.
208. And if the feedback data passes the verification, forwarding the feedback data to the terminal according to a preset flow control strategy.
If the feedback data passes the verification, the server forwards the feedback data to the terminal according to a preset flow control strategy. The preset flow control policy, that is, according to the access amount of the database, may appropriately adjust the database operation instruction in a manner of a fixed duration or a time interval, for example, delay execution, terminate execution, or the like, which is not limited herein.
According to the embodiment of the invention, the database forwarding interface is deployed on the server, and the operation of the terminal is forwarded through the database forwarding interface, so that the problem that the database and the terminal cannot be directly communicated is solved, the operation of the database is realized, the call flexibility of the system is improved, and the working efficiency is improved.
The database management method in the embodiment of the present invention is described above, and the database management device in the embodiment of the present invention is described below, referring to fig. 3, where an embodiment of the database management device in the embodiment of the present invention includes:
a first receiving unit 301, configured to receive a database operation instruction sent by a terminal, where the database operation instruction is used to access a target database;
the parsing generation unit 302 is configured to parse the database operation instruction to generate target parameters, where the target parameters include a database connection string, a database account number, a database password, and an SQL statement;
a deployment unit 303, configured to deploy a database forwarding interface according to the target parameter;
a sending unit 304, configured to send the database operation instruction to the target database through the database forwarding interface;
and a second receiving unit 305, configured to receive feedback data of the target database.
According to the embodiment of the invention, the database forwarding interface is deployed on the server, and the operation of the terminal is forwarded through the database forwarding interface, so that the problem that the database and the terminal cannot be directly communicated is solved, the operation of the database is realized, the call flexibility of the system is improved, and the working efficiency is improved.
Referring to fig. 4, another embodiment of the database management apparatus according to the present invention includes:
a first receiving unit 301, configured to receive a database operation instruction sent by a terminal, where the database operation instruction is used to access a target database;
the parsing generation unit 302 is configured to parse the database operation instruction to generate target parameters, where the target parameters include a database connection string, a database account number, a database password, and an SQL statement;
a deployment unit 303, configured to deploy a database forwarding interface according to the target parameter;
a sending unit 304, configured to send the database operation instruction to the target database through the database forwarding interface;
and a second receiving unit 305, configured to receive feedback data of the target database.
Optionally, the deployment unit 303 includes:
a building module 3031, configured to invoke a preset spring model view controller spring MVC frame to build a WEB environment;
a first creating module 3032, configured to create an initial interface in a controller layer of a preset spring framework;
a second creating module 3033, configured to create a database forwarding interface by using the database connection string, the database account number, the database password, and the SQL statement in the target parameter as parameters of the initial interface;
And the deployment module 3034 is used for calling a preset mapping configuration mybatis framework to deploy the database forwarding interface.
Optionally, the second creating module 3033 is specifically configured to:
determining a format type to be selected according to the specification of the initial interface, wherein the format type to be selected comprises a Jessen json format, a list format and/or an array format; determining a first format type corresponding to the database connection string, a second format type corresponding to the database account, a third format type corresponding to the database password and a fourth format type corresponding to the SQL sentence according to the format type to be selected; performing format conversion on the database connection string, the database account number, the database password and the SQL sentence based on the first format type, the second format type, the third format type and the fourth format type; and creating a database forwarding interface based on the converted database connection string, the converted database account number, the converted database password and the converted SQL sentence.
Optionally, the database management device further includes:
a connection unit 306, configured to establish a network connection between the database forwarding interface and the target database.
Optionally, the connection unit 306 is specifically configured to:
a first determining module 3061, configured to determine an internet protocol IP address and a network port according to the database connection string;
a second determining module 3062, configured to determine the database name according to the IP address and the network port;
a login module 3063, configured to login, through the database account number and the database password, a target database corresponding to the database name;
a generating module 3064, configured to generate a connection object of the target database;
the connection module 3065 is configured to establish a network connection with the database forwarding interface through the connect object;
and the feedback module 3066 is configured to feed back a connection success message to the terminal, where the connection success message is used to indicate that the database forwarding interface is successfully connected to the target database.
Optionally, the connection unit 306 further includes:
a judging module 3067, configured to judge whether the waiting duration exceeds a preset duration;
and the reconnection module 3068 is configured to reinitiate a network connection request between the database forwarding interface and the target database if the waiting duration exceeds a preset duration.
Optionally, the database management device further includes:
A verification unit 307, configured to verify the feedback data;
and the forwarding unit 308 is configured to forward the feedback data to the terminal according to a preset flow control policy if the feedback data passes the verification.
According to the embodiment of the invention, the database forwarding interface is deployed on the server, and the operation of the terminal is forwarded through the database forwarding interface, so that the problem that the database and the terminal cannot be directly communicated is solved, the operation of the database is realized, the call flexibility of the system is improved, and the working efficiency is improved.
The database management apparatus in the embodiment of the present invention is described in detail above in fig. 3 to 4 from the point of view of the modularized functional entity, and the database management device in the embodiment of the present invention is described in detail below from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a database management device according to an embodiment of the present invention, where the database management device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 501 (e.g., one or more processors) and a memory 509, and one or more storage media 508 (e.g., one or more mass storage devices) storing application programs 507 or data 506. Wherein the memory 509 and storage medium 508 may be transitory or persistent storage. The program stored on the storage medium 508 may include one or more modules (not shown), each of which may include a series of instruction operations on the database management device. Still further, the processor 501 may be configured to communicate with a storage medium 508 and execute a series of instruction operations in the storage medium 508 on the database management device 500.
The database management device 500 may also include one or more power supplies 502, one or more wired or wireless network interfaces 503, one or more input/output interfaces 504, and/or one or more operating systems 505, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the database management device structure shown in fig. 5 is not limiting of the database management device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. The processor 501 may perform the functions of the parsing generating unit 302, the deployment unit 303, the connection unit 306, and the verification unit 307 in the above-described embodiments.
The following describes the respective constituent elements of the database management apparatus in detail with reference to fig. 5:
the processor 501 is a control center of the database management apparatus, and can perform processing according to a set database management method. The processor 501 connects each part of the whole database management device by various interfaces and lines, executes various functions of the database management device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, and forwards the operation of the terminal through the database forwarding interface, thereby solving the problem that the database and the terminal cannot communicate directly, realizing the operation of the database, increasing the calling flexibility of the system and improving the working efficiency. The storage medium 508 and the memory 509 are both carriers for storing data, and in the embodiment of the present invention, the storage medium 508 may refer to an internal memory with a small storage capacity but a fast speed, and the memory 509 may be an external memory with a large storage capacity but a slow storage speed.
The memory 509 may be used to store software programs and modules, and the processor 501 performs various functional applications and data processing of the database management device 500 by running the software programs and modules stored in the memory 509. The memory 509 may mainly comprise a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as deploying a database forwarding interface according to the target parameter), etc.; the storage data area may store data created according to the use of the database management device (such as target parameters), and the like. In addition, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The database management method program and received data streams provided in embodiments of the present invention are stored in memory and when needed, processor 501 is invoked from memory 509.
When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, twisted pair), or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., an optical disk), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiment of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.