Method, system and device based on DBIO interface and medium
A technology of interface access and interface function, which is applied in the field of database interface, can solve the problems of inability to flexibly relocate data, synchronization, system error reporting, etc., and achieve the effect of improving development efficiency and adaptability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach
[0038] see figure 1 , a method for accessing a database based on a DBIO interface provided in the embodiment of this application. The DBIO platform defines and implements a set of interfaces for accessing databases. Through this interface, the connection to various databases is simplified. Generally, accessing databases is A C interface or an ODBC interface embedded with a structured query language (structured query language, hereinafter referred to as SQL) statement through a command line interface (command-line interface, hereinafter referred to as CLI). However, this method adopts the method of storing the code that realizes the interface function in the preset database operation file, so that the developer does not need to consider the type of the underlying reference database, and does not need to consider the specific writing method of SQL for direct reference, which improves the adaptation of the interface performance, improving development efficiency. Its specific imple...
Embodiment 2
[0082] see Image 6 , a system for accessing a database based on a DBIO interface provided in the embodiment of the present application, including:
[0083]Define module 1, which is used to define environment variables to specify the database type; define the interface function of the database according to the access point provided by the database;
[0084] The preset module 2 is used to store the code for realizing the interface function in the database into the preset database operation file;
[0085] The compilation module 3 is used to configure the rule file, select the current database and use the corresponding code in the database operation file to read the operation file and compile the operation of data synchronization and data cancellation;
[0086] The execution module 4 is used for executing the compiled file and accessing the database.
Embodiment 3
[0088] see Figure 7 , is an electronic device provided by the embodiment of the present application, including at least one processor 5, at least one memory 6, and a data bus 7; wherein: the processor 5 and the memory 6 complete the mutual communication through the data bus 7 communication; the memory 6 stores program instructions executable by the processor 5, and the processor 5 invokes the program instructions to execute a method for accessing a database based on a DBIO interface. Example implementation:
[0089] Define environment variables to specify the database type; define the interface function of the database according to the access point provided by the database; store the code that implements the interface function in the database into the preset database operation file; configure the rule file, select the current database to use the database Compile the corresponding code in the operation file; execute the compiled file to access the database.
[0090] Wherein,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


