CN108628862A - database addressing method, device and system - Google Patents

database addressing method, device and system Download PDF

Info

Publication number
CN108628862A
CN108628862A CN201710152729.4A CN201710152729A CN108628862A CN 108628862 A CN108628862 A CN 108628862A CN 201710152729 A CN201710152729 A CN 201710152729A CN 108628862 A CN108628862 A CN 108628862A
Authority
CN
China
Prior art keywords
database
data base
base call
request
sentence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710152729.4A
Other languages
Chinese (zh)
Inventor
武勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710152729.4A priority Critical patent/CN108628862A/en
Publication of CN108628862A publication Critical patent/CN108628862A/en
Pending legal-status Critical Current

Links

Abstract

A kind of database addressing method of present invention proposition, device and system, are related to data processing field.Wherein, a kind of database device for addressing of the invention includes:Business receiving module, for receiving the data base call request from operation system;Parsing module, for asking the request for including mark to determine data base call sentence according to data base call;Database selecting module, for determining target database according to data base call sentence;Data base call module is used for target database transmission data library call statement.Such device reduces operation system and is directly relied on to database, be conducive to promote the portability of database and the ease for maintenance of operation system it is not necessary that operation system and database are coupled.

Description

Database addressing method, device and system
Technical field
This application involves data processing field, especially a kind of database addressing method, device and system.
Background technology
With the complication of business, engineer often carries out distributed structure/architecture to each business in same system and sets Meter, each operation system splitted out uses independent database, to realize the decoupling of business datum.Such as in electric business In platform, user often completes once to merchandise, and system needs to access User Information Database, commodity information database, commodity stocks Database and commercial promotions database.Encounter data volume it is huge in the case of, for realize data quick access, often A point library also, which can be carried out, to database divides table to design.
Corresponding database connection configuration is configured in business source code in the prior art, is initialized after starting operation system Database connects, and database returns to requested data to operation system.
But such mode can cause operation system to directly rely on specific database, coupling is high, is unfavorable for system Transplanting.In addition, since database access strategies are solidificated in source-code level, generally required when changing the configuration of database connection pool Source code or source profile are changed, and restarts operation system, or even is reached the standard grade again;And if when an operation system simultaneously according to When relying multiple databases, the connection for configuring multiple databases in source code grade is needed, complexity is not only configured and increases, system data Access layer complexity also increases.
Invention content
It is an object of the present invention to reduce the degree of coupling of operation system and database.
According to one embodiment of present invention, a kind of database device for addressing is proposed, including:Business receiving module, is used for Receive the data base call request from operation system;Parsing module is included in asking in data base call request for basis Mark is asked to determine data base call sentence;Database selecting module, for determining target database according to data base call sentence; Data base call module is used for target database transmission data library call statement.
Optionally, request mark includes business rule number and request type mark.
Optionally, further include:Business feedback module, for the feedback information from target database to be sent to business system System.
Optionally, parsing module includes:Data extracting unit, for extracting the business being included in data base call request Data;Sentence resolution unit, for determining data base call sentence according to request mark and business datum.
Optionally, sentence resolution unit is specifically used for:It is identified according to request and determines formatted data base sentence;According to business Data and formatted data base sentence determine data base call sentence.
Optionally, further include:Business rule memory module, for storing intended service Rule Information, intended service rule The request type mark for the request type that information includes business rule number and each business rule includes.
Optionally, further include:Business rule and database association rule memory module, for store intended service Rule Information with The incidence relation of database statement.
Optionally, further include:Database storage module, the link information for storing each database.
Optionally, further include:Business configuration module, for for user configuration intended service Rule Information.
Optionally, further include:Configuration module is mapped, for for user configuration intended service Rule Information and database statement Incidence relation.
Optionally, further include:Database statement configuration module, for for user configuration data base call sentence.
Optionally, further include:Database configuration module, for the link information for each database of user configuration.
Such device can receive the request of the data base call from operation system, determine corresponding data base call language Sentence and target database, and to the target database transmission data library call statement to achieve the purpose that data base call, to It is not necessary that operation system and database are coupled, reduce operation system and database is directly relied on, be conducive to promote data The portability in library and the ease for maintenance of operation system.
According to another embodiment of the invention, a kind of database addressing system is proposed, including:What is be mentioned above is arbitrary A kind of database device for addressing;With, operation system, for database device for addressing transmission data library call request, database Call request includes request mark.
In such system, database device for addressing can receive the request of the data base call from operation system, determine Corresponding data base call sentence and target database, and to the target database transmission data library call statement to reach data The purpose that library is called, without operation system and database are coupled, reduce operation system to database it is direct according to Rely, is conducive to promote the portability of database and the ease for maintenance of operation system.
According to still another embodiment of the invention, a kind of database addressing method is proposed, including:It receives and comes from operation system Data base call request;Data base call sentence is determined according to the request mark being included in data base call request;According to Data base call sentence determines target database;To target database transmission data library call statement.
Optionally, request mark includes business rule number and request type mark.
Optionally, further include:Receive the feedback information from target database;Feedback information is sent to operation system.
Optionally, determine that data base call sentence includes according to the request mark being included in data base call request:It carries Take the business datum being included in data base call request;Data base call sentence is determined according to request mark and business datum.
Optionally, determine that data base call sentence includes according to request mark and business datum:It is determined according to request mark Formatted data base sentence;Data base call sentence is determined according to business datum and formatted data base sentence.
Optionally, further include:Intended service Rule Information is stored, intended service Rule Information includes business rule number, The request type for the request type for including with each business rule identifies.
Optionally, further include:Store the incidence relation of intended service Rule Information and database statement.
Optionally, further include:Store the link information of each database.
Optionally, further include:Configure intended service Rule Information.
Optionally, further include:Configure the incidence relation of intended service Rule Information and database statement.
Optionally, further include:Configuration database call statement.
Optionally, further include:Configure the link information of each database.
By such method, the data base call request from operation system can be received, determines corresponding database Call statement and target database, and to the mesh of the target database transmission data library call statement to reach data base call , without operation system and database are coupled, reduce operation system and database is directly relied on, be conducive to carry Rise the portability of database and the ease for maintenance of operation system.
According to still a further embodiment, a kind of database addressing method is proposed, including:Operation system is to database The library call request of device for addressing transmission data, data base call request include business rule number and request type mark;With Any one the database addressing method being mentioned above.
By such method, database device for addressing can receive the request of the data base call from operation system, really Fixed corresponding data base call sentence and target database, and reach data to the target database transmission data library call statement The purpose that library is called, without operation system and database are coupled, reduce operation system to database it is direct according to Rely, is conducive to promote the portability of database and the ease for maintenance of operation system.
According to another preferred embodiment, it is also proposed that a kind of database addressing system, including:Memory;And It is coupled to the processor of memory, processor is configured as mentioned in the text appointing based on the instruction execution for being stored in memory It anticipates a kind of database addressing method.
Such system it is not necessary that operation system and database are coupled, reduce operation system to database it is direct according to Rely, is conducive to promote the portability of database and the ease for maintenance of operation system.
In addition, one of embodiment according to the present invention, proposes a kind of computer readable storage medium, is stored thereon with Computer program instructions realize the step for any one the database addressing method being mentioned above when the instruction is executed by processor Suddenly.
Business is reduced it is not necessary that operation system and database are coupled using such computer readable storage medium System directly relies on database, is conducive to promote the portability of database and the ease for maintenance of operation system.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of one embodiment of the database device for addressing of the present invention.
Fig. 2 is the schematic diagram of another embodiment of the database device for addressing of the present invention.
Fig. 3 is the schematic diagram of another embodiment of the database device for addressing of the present invention.
Fig. 4 is the schematic diagram of the further embodiment of the database device for addressing of the present invention.
Fig. 5 is the schematic diagram of one embodiment of the database addressing system of the present invention.
Fig. 6 is the flow chart of one embodiment of the database addressing method of the present invention.
Fig. 7 is the flow chart of another embodiment of the database addressing method of the present invention.
Fig. 8 be the present invention database addressing method in determine data base call sentence one embodiment flow chart.
Fig. 9 is the flow chart of another embodiment of the database addressing method of the present invention.
Figure 10 is the schematic diagram of another embodiment of the database addressing system of the present invention.
Figure 11 is the schematic diagram of another embodiment of the database addressing system of the present invention.
Specific implementation mode
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
The schematic diagram of one embodiment of the database device for addressing of the present invention is as shown in Figure 1.Wherein, business receiving module 101 can receive the data base call request from operation system, and data base call request includes request mark.In a reality It applies in example, operation system can call the predetermined interface of database device for addressing in a predetermined format.In one embodiment, it asks Mark includes business rule number and request type mark, and different field, the business of type can be classified, and uses industry Business rule numbers are identified, such as are divided into user information rule, merchandise news rule, Transaction Information rule.Each business rule Include then different request type, such as delete, inquiry, modification, be inserted into, is identified using request type mark.Parsing Module 102 can identify according to request and determine data base call sentence.It in one embodiment, can be according to request mark and number It is inquired according to the incidence relation of library call statement, obtains data base call sentence.Database selecting module 103 can be according to number Target database is determined according to library call statement.In one embodiment, may include target database in data base call sentence Title.The data base call sentence that parsing module 102 determines can be sent to target database by data base call module 104.
Such device can receive the request of the data base call from operation system, determine corresponding data base call language Sentence and target database, and to the target database transmission data library call statement to achieve the purpose that data base call, to It is not necessary that operation system and database are coupled, reduce operation system and database is directly relied on, be conducive to promote data The portability in library;Meanwhile simplifying development of the operation system in database access layer.Using the system of the present invention, open Hair personnel need not develop the access configuration of any database in operation system again, database statement need not also be developed, to carry The high development efficiency of operation system, improves the ease for maintenance of operation system.
The schematic diagram of another embodiment of the database device for addressing of the present invention is as shown in Figure 2.Wherein, business receives mould Block 201, parsing module 202, database selecting module 203 and the structure and function of database calling module 204 and the implementation of Fig. 1 It is similar in example.Database device for addressing can also receive the feedback information from target database, in one embodiment, can be with Feedback information from target database is received by data base call module 204.Database device for addressing further includes business feedback Feedback information can be sent to the operation system of transmission data library call request by module 205.In one embodiment, if number It is inquiry request according to library call request, then data base call module 204 receives the inquiry data from target database, and business is anti- Operation system of the data feedback to the call request of transmission data library will be inquired by presenting module 205.In one embodiment, if database Call request is to delete, change, be inserted into etc., and data base call module 204 receives running succeeded from target database or loses Feedback information is sent to the operation system of transmission data library call request by the feedback information lost, business feedback module 205;One In a embodiment, business feedback module 205 is sent to business after can also carrying out the processing such as format conversion, simplification to feedback information System.
Such device can obtain the feedback information of target database and return to operation system so that operation system energy The execution state for enough obtaining data base call request, improves the friendly of device, also improves the stabilization of operation system operation Property.
In one embodiment, may include business datum in data base call request, as being inserted into, modification database In the case of, it will include business datum in data base call request.Parsing module may include data extracting unit and sentence parsing Unit.Wherein, data extracting unit can extract the business datum in data base call request;Sentence resolution unit can be based on Incidence relation request mark and format database statement identifies according to request and determines formatted data base sentence, by data The business datum of extraction unit extraction is inserted into formatted data base sentence, determines data base call sentence.In one embodiment In, formatted data base sentence is parametrization, is to be configured to format number one by one according to actual business scenario one by one According to library sentence set, the database objects such as the corresponding table name of formatted data base sentence, row name, function name, view name are all State content.In parsing module, the number that actually can perform one by one in dynamic state of parameters assignment to database statement, will be eventually formed According to library call statement.
Such device can extract the business datum in data base call request, and business datum is inserted into database tune With in sentence, consequently facilitating realizing to operations such as modification, the insertions of database.
The schematic diagram of another embodiment of the database device for addressing of the present invention is as shown in Figure 3.Wherein, business receives mould The structure and function and Fig. 1,2 reality of block 301, parsing module 302, database selecting module 303 and database calling module 304 It applies similar in example.
In one embodiment, database device for addressing can also include business memory module 305, can store predetermined industry Business Rule Information, the request type that intended service Rule Information includes business rule number and each business rule includes Request type identifies.Business receiving module 301 can be based on the intended service Rule Information parsing that business memory module 305 stores Data base call information.In one embodiment, intended service Rule Information can be stored in memory by business memory module 305 In space, to further increase operational efficiency.
Such device can store intended service Rule Information, consequently facilitating operation system directly invokes, improve and hold Line efficiency.
In one embodiment, database device for addressing can also include business rule and data rule memory module 306, The incidence relation of intended service Rule Information and data base call sentence can be stored.Parsing module 302 can be based on business and advise The information then stored with data rule memory module 306, according to the associated data base call language of data base call acquisition request Sentence.
Such device can store the incidence relation of intended service Rule Information and data base call sentence, consequently facilitating Parsing module determines data base call sentence, improves execution efficiency.
In one embodiment, database device for addressing can also include database storage module 307, be stored with each number According to the link information in library, such as address information, initialization information, activation bit, access mode and/or configuration information.Database The link information invocation target database that calling module 304 is stored based on database storage module 307.
Such device is stored with the link information of each database, to ensure that database device for addressing has operation each The permission of a database ensures that data base call request smoothly executes.
The schematic diagram of the further embodiment of the database device for addressing of the present invention is as shown in Figure 4.Wherein, business receives mould Block 401, parsing module 402, database selecting module 403, data base call module 404, business memory module 405, business rule It is then similar to the embodiment of Fig. 3 with data rule memory module 406 and the structure and function of database storage module 407.
In one embodiment, database device for addressing can also include business configuration module 408, can be for user configuration The size of intended service Rule Information and business memory module 405, cache-time etc..User can add, delete according to demand, Intended service Rule Information is changed, consequently facilitating the extension upgrading of device, improves the flexibility that device uses.
In one embodiment, database device for addressing can also include mapping configuration module 409, can be for user configuration The incidence relation of intended service Rule Information and data base call sentence.User can add, delete according to demand, it is predetermined to change The incidence relation of business rule information and date library call statement, consequently facilitating the extension upgrading of device, further increases device The flexibility used.
In one embodiment, database device for addressing can also include database statement configuration module 410, can be for Family configuration database call statement.User can add, delete, changing data base call sentence according to demand, consequently facilitating dress Modification, the upgrading set, further increase the flexibility that device uses.
In one embodiment, database device for addressing can also include database configuration module 411, can match for user The link information of each database and the size etc. of business rule and data rule memory module 406 are set, consequently facilitating database The operations such as migration, addition, deletion, it is not necessary to modify operation system source codes, improve the flexibility that device uses.
Using such database device for addressing, it is capable of the connection attribute of each database of dynamic configuration at any time, such as connects Pond size, cache-time length etc. so that operation system need not be again as traditional approach, and adjustment, which matches to postpone, to be needed to restart Server, or even operation of reaching the standard grade.It only needs to modify in the existing configuration of database device for addressing, so that it may change be made to give birth to Effect.
The schematic diagram of one embodiment of the database addressing system of the present invention is as shown in Figure 5.Wherein, one or more industry Business system 51 can include that business rule is compiled to database device for addressing transmission data library call request, data base call request Number and request type mark.In one embodiment, it can also include business datum.Data base call request needs to meet data The intended service rule of library device for addressing 52.Database device for addressing 52 can be that any one database being mentioned above is sought Location device.One or more databases 53 are connect with database device for addressing 52, and behaviour is called for database device for addressing 52 Make.
In such system, database device for addressing can receive the request of the data base call from operation system, determine Corresponding data base call sentence and target database, and to the target database transmission data library call statement to reach data The purpose that library is called, without operation system and database are coupled, reduce operation system to database it is direct according to Rely, when carrying out database migration, rules modification, without changing operation system source code, is conducive to the portable for promoting database The ease for maintenance of property and operation system.
The flow chart of one embodiment of the database addressing method of the present invention is as shown in Figure 6.
In step 601, the data base call request from operation system is received, data base call request includes request Mark.In one embodiment, operation system can call the predetermined interface of database device for addressing in a predetermined format.At one In embodiment, request mark may include that business rule number and request type identify, can be by different field, the business of type Classify, and be identified using business rule number, is such as divided into user information rule, merchandise news rule, Transaction Information Rule etc..Each business rule includes different request type, such as deletes, inquiry, modification, is inserted into, using request type Mark is identified.
In step 602, it is identified according to request and determines data base call sentence.It in one embodiment, can be according to asking It asks the incidence relation of the combined data base call statement of mark to be inquired, obtains data base call sentence.
In step 603, target database is determined according to data base call sentence.In one embodiment, database tune With may include Target database name in sentence.
In step 604, determining data base call sentence is sent to target database.
By such method, the data base call request from operation system can be received, determines corresponding database Call statement and target database, and to the mesh of the target database transmission data library call statement to reach data base call , without operation system and database are coupled, reduce operation system and database is directly relied on, be conducive to carry Rise the portability of database and the ease for maintenance of operation system.
The flow chart of another embodiment of the database addressing method of the present invention is as shown in Figure 7.
In step 701, the data base call request from operation system is received, data base call request includes request Mark, wherein request mark can be numbered by business rule and request type mark forms.
In a step 702, it is identified according to request and determines data base call sentence.It in one embodiment, can be according to asking It asks mark and the incidence relation of data base call sentence to be inquired, obtains data base call sentence.
In step 703, target database is determined according to data base call sentence.In one embodiment, database tune With may include Target database name in sentence.
In step 704, determining data base call sentence is sent to target database.
In step 705, the feedback information from target database is received.
In step 706, feedback information is sent to the operation system of transmission data library call request.In one embodiment In, if data base call request is inquiry request, the inquiry data from target database are received, and data feedback will be inquired To the operation system of transmission data library call request.In one embodiment, if data base call request is deletion, modification, inserts Enter, then receives the feedback information of running succeeded from target database or failure, feedback information is sent to transmission data The operation system of library call request;In one embodiment, such as format conversion can also be carried out to feedback information, simplify processing Operation system is then forwarded to after processing.
By such method, the feedback information of target database can be obtained and return to operation system so that business System can obtain the execution state of data base call request, improve the friendly of device, also improve operation system operation Stability.
In one embodiment, may include business datum in data base call request, as being inserted into, modification database In the case of, it will include business datum in data base call request.Data base call is determined in the database addressing method of the present invention The flow chart of one embodiment of sentence is as shown in Figure 8.
In step 801, the business datum in the request of extraction data base call.
In step 802, it based on incidence relation request mark and format database statement, is determined according to request mark The business datum of data extracting unit extraction is inserted into formatted data base sentence, determines data by formatted data base sentence Library call statement.In one embodiment, request mark may include business rule number and request type mark.
By such method, the business datum in data base call request can be extracted, and by business datum insert number According in the call statement of library, consequently facilitating realizing to operations such as modification, the insertions of database.
In one embodiment, intended service Rule Information can be prestored, intended service Rule Information includes business The request type for the request type that rule numbers and each business rule include identifies, consequently facilitating operation system is directly sharp With the combination calling interface by business rule number and request type mark, execution efficiency is improved.
In one embodiment, being associated with for intended service Rule Information and data base call sentence can be prestored System, consequently facilitating according to the associated data base call sentence of data base call acquisition request, improves execution efficiency.
In one embodiment, the link information that each database can be prestored, such as address information, initialization letter Breath, activation bit and/or configuration information etc. are protected to ensure that database device for addressing has the permission for operating each database Data base call request is demonstrate,proved smoothly to execute.
In one embodiment, intended service Rule Information can be configured, such as adds, delete, changed in advance according to demand Business rule information is determined, consequently facilitating the extension upgrading of device, improves the flexibility that device uses.
In one embodiment, the incidence relation that intended service Rule Information and database statement can be configured, such as basis Demand addition deletes, changes intended service Rule Information and data base call sentence, includes the association of formatted data base sentence Relationship, consequently facilitating the extension upgrading of device, further increases the flexibility that device uses.
In one embodiment, can be with configuration database call statement, such as add, delete according to demand, modification data Library call statement, consequently facilitating the modification of device, upgrading, further increase the flexibility that device uses.
In one embodiment, the link information of each database can be configured, consequently facilitating the migration of database, adding The operations such as add, delete, it is not necessary to modify operation system source codes, improve the flexibility that device uses.
The flow chart of another embodiment of the database addressing method of the present invention is as shown in Figure 9.
In step 901, operation system is asked to database device for addressing transmission data library call request, data base call It include request mark.It is in embodiment at one, request mark may include business rule number and request type mark. Can also include business datum in data base call request in one embodiment.
In step 902, database device for addressing receives the data base call request from operation system, data base call Request includes business rule number and request type mark.
In step 903, data base call sentence is determined according to business rule number and request type mark.In a reality It applies in example, can be numbered according to business rule and the incidence relation of the combined data base call statement of request type mark is looked into It askes, obtains data base call sentence.
In step 904, target database is determined according to data base call sentence.In one embodiment, database tune With may include Target database name in sentence.
In step 905, determining data base call sentence is sent to target database.
By such method, database device for addressing can receive the request of the data base call from operation system, really Fixed corresponding data base call sentence and target database, and to the target database transmission data library call statement to reach several The purpose called according to library reduces operation system to the direct of database without operation system and database are coupled It relies on, when carrying out database migration, rules modification, without changing operation system source code, is conducive to promote the removable of database The ease for maintenance of plant property and operation system.
The structural schematic diagram of another embodiment of database addressing system of the present invention is as shown in Figure 10.Database addressing system System includes memory 1010 and processor 1020.Wherein:Memory 1010 can be disk, flash memory or other any non-volatile Storage medium.The memory instruction in the corresponding embodiment of library addressing method for storing data.Processor 1020, which is coupled to, to be deposited Reservoir 1010 can be used as one or more integrated circuits to implement, such as microprocessor or microcontroller.The processor 1020 For executing the instruction stored in memory, it can realize that database addresses.
In one embodiment, can also as shown in figure 11, database addressing system 1100 includes memory 1110 and place Manage device 1120.Processor 1020 is coupled to memory 1110 by BUS buses 1130.The database addressing system 1100 can be with External memory 1150 is connected to call external data by memory interface 1140, can also pass through network interface 1160 It is connected to network or an other computer system (not shown).It no longer describes in detail herein.
In this embodiment, it is instructed by memory stores data, then above-metioned instruction is handled by processor, can reduced Each operation system directly relies on database, is conducive to the portability and ease for maintenance of lifting system.
In another embodiment, a kind of computer readable storage medium, is stored thereon with computer program instructions, this refers to The step of enabling the method in the corresponding embodiment for realizing database addressing method when being executed by processor.Technology people in the art Member is it should be appreciated that the embodiment of the present invention can be provided as method, apparatus or computer program product.Therefore, the present invention can be used The form of full hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects.Moreover, the present invention can Using wherein include in one or more computer usable program code computer can use non-transient storage medium (including But be not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow chart of equipment (system) and computer program product And/or block diagram describes.It should be understood that each flow in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer programs can be provided to refer to Enable the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate One machine so that by the instruction that computer or the processor of other programmable data processing devices execute generate for realizing The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
So far, the present invention is described in detail.In order to avoid the design of the masking present invention, it is public that this field institute is not described Some details known.Those skilled in the art as described above, can be appreciated how to implement technology disclosed herein completely Scheme.
The method and device of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or Person's software, hardware, firmware any combinations come realize the present invention method and device.The step of for the method it is above-mentioned Sequence is merely to illustrate, and the step of method of the invention is not limited to sequence described in detail above, unless with other sides Formula illustrates.In addition, in some embodiments, the present invention can be also embodied as recording program in the recording medium, these Program includes for realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing The recording medium of program according to the method for the present invention.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof;To the greatest extent The present invention is described in detail with reference to preferred embodiments for pipe, those of ordinary skills in the art should understand that:Still It can modify to the specific implementation mode of the present invention or equivalent replacement is carried out to some technical characteristics;Without departing from this hair The spirit of bright technical solution should all cover within the scope of the technical scheme claimed by the invention.

Claims (18)

1. a kind of database device for addressing, including:
Business receiving module, for receiving the data base call request from operation system;
Parsing module, for determining data base call sentence according to the request mark being included in the data base call request;
Database selecting module, for determining target database according to the data base call sentence;
Data base call module, for sending the data base call sentence to the target database.
2. according to device shown in claim 1, wherein the request mark includes business rule number and request type mark Know.
3. device according to claim 1 or 2,
Further include:
Business feedback module, for the feedback information from the target database to be sent to the operation system.
4. device according to claim 1 or 2, wherein
The parsing module includes:
Data extracting unit, for extracting the business datum being included in the data base call request;
Sentence resolution unit, for determining the data base call sentence according to request mark and the business datum.
5. device according to claim 4, wherein the sentence resolution unit is specifically used for:
It is identified according to the request and determines formatted data base sentence;
The data base call sentence is determined according to the business datum and the formatted data base sentence.
6. the apparatus of claim 2,
Further include:
Business rule memory module, for storing intended service Rule Information, the intended service Rule Information includes the industry The request type mark for the request type that business rule numbers and each business rule include;
Business rule and database association rule memory module, for storing the intended service Rule Information and the data base call The incidence relation of sentence;
And/or
Database storage module, the link information for storing each database.
7. device according to claim 6, further includes:
Business configuration module, for for intended service Rule Information described in user configuration;
Configuration module is mapped, for being associated with for intended service Rule Information described in user configuration and the data base call sentence Relationship;
Database statement configuration module, for for data base call sentence described in user configuration;
And/or
Database configuration module, for the link information for each database described in user configuration.
8. a kind of database addressing system, including:
Database device for addressing described in claim 1~7 any one;With,
Operation system is used for the database device for addressing transmission data library call request, in the data base call request Including business rule number and request type mark.
9. a kind of database addressing method, including:
Receive the data base call request from operation system;
Data base call sentence is determined according to the request mark being included in the data base call request;
Target database is determined according to the data base call sentence;
The data base call sentence is sent to the target database.
10. according to the method described in claim 9, wherein, the request mark includes business rule number and the request class Type identifies.
11. method according to claim 9 or 10, further includes:
Receive the feedback information from the target database;
The feedback information is sent to the operation system.
12. method according to claim 9 or 10, wherein the basis is included in the data base call request Request mark determines that data base call sentence includes:
Extraction is included in the business datum in the data base call request;
The data base call sentence is determined according to request mark and the business datum.
13. according to the method for claim 12, wherein described to determine institute according to request mark and the business datum Stating data base call sentence includes:
It is identified according to the request and determines formatted data base sentence;
The data base call sentence is determined according to the business datum and the formatted data base sentence.
14. according to the method described in claim 10, further including:
Intended service Rule Information is stored, the intended service Rule Information includes business rule number and each business rule Including request type the request type mark;
Store the incidence relation of the intended service Rule Information and the data base call sentence;
And/or
Store the link information of each database.
15. according to the method for claim 14, further including:
Configure the intended service Rule Information;
Configure the incidence relation of the intended service Rule Information and the data base call sentence;
Configure the data base call sentence;
And/or
Configure the link information of each database.
16. a kind of database addressing method, including:
For operation system to the database device for addressing transmission data library call request, the data base call request includes industry Business rule numbers and request type mark;With,
Database addressing method described in claim 9~15 any one.
17. a kind of database addressing system, including:
Memory;And
It is coupled to the processor of the memory, the processor is configured as based on the instruction execution for being stored in the memory Method as described in claim 9 to 16 any one.
18. a kind of computer readable storage medium, is stored thereon with computer program instructions, real when which is executed by processor The step of showing the method described in claim 9 to 16 any one.
CN201710152729.4A 2017-03-15 2017-03-15 database addressing method, device and system Pending CN108628862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710152729.4A CN108628862A (en) 2017-03-15 2017-03-15 database addressing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710152729.4A CN108628862A (en) 2017-03-15 2017-03-15 database addressing method, device and system

Publications (1)

Publication Number Publication Date
CN108628862A true CN108628862A (en) 2018-10-09

Family

ID=63686619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710152729.4A Pending CN108628862A (en) 2017-03-15 2017-03-15 database addressing method, device and system

Country Status (1)

Country Link
CN (1) CN108628862A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282581A (en) * 2021-05-17 2021-08-20 广西南宁天诚智远知识产权服务有限公司 Database data calling method and device
CN114326444A (en) * 2021-12-10 2022-04-12 汉博来自控科技(上海)有限公司 Performance optimization processing method for arm type aerial work vehicle platform controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130185306A1 (en) * 2012-01-13 2013-07-18 Business Objects Software Ltd. Entity Matching Using Machine Learning
CN105159920A (en) * 2015-07-28 2015-12-16 卡斯柯信号有限公司 Attribute tag based database access method
CN105677751A (en) * 2015-12-29 2016-06-15 北京奇艺世纪科技有限公司 Relation-type database scheduling method and system
CN105989153A (en) * 2015-03-02 2016-10-05 阿里巴巴集团控股有限公司 Interaction method and device of database
CN106294565A (en) * 2016-07-27 2017-01-04 中国农业银行股份有限公司 A kind of data bank access method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130185306A1 (en) * 2012-01-13 2013-07-18 Business Objects Software Ltd. Entity Matching Using Machine Learning
CN105989153A (en) * 2015-03-02 2016-10-05 阿里巴巴集团控股有限公司 Interaction method and device of database
CN105159920A (en) * 2015-07-28 2015-12-16 卡斯柯信号有限公司 Attribute tag based database access method
CN105677751A (en) * 2015-12-29 2016-06-15 北京奇艺世纪科技有限公司 Relation-type database scheduling method and system
CN106294565A (en) * 2016-07-27 2017-01-04 中国农业银行股份有限公司 A kind of data bank access method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282581A (en) * 2021-05-17 2021-08-20 广西南宁天诚智远知识产权服务有限公司 Database data calling method and device
CN114326444A (en) * 2021-12-10 2022-04-12 汉博来自控科技(上海)有限公司 Performance optimization processing method for arm type aerial work vehicle platform controller

Similar Documents

Publication Publication Date Title
CN102132256B (en) Provisioning virtual resources using name resolution
CN106528165B (en) Code generating method and code generating system
US10142180B2 (en) Method and system for providing unified configuration information to disparate system software components
US10255308B2 (en) Conforming data structure instances to schema versions
CN101640587B (en) Data synchronization method and data synchronization device
CN107885539A (en) A kind of middleware management method and server
CN108319661A (en) A kind of structured storage method and device of spare part information
CN108399072A (en) Five application page update method and device
US20070033570A1 (en) Method and system for transforming a process flow
CN108733449A (en) Method, equipment and computer readable storage medium for managing virtual machine
CN108536745A (en) Tables of data extracting method, terminal, equipment and storage medium based on Shell
US8196093B2 (en) Apparatus and method for componentizing legacy system
US10235005B2 (en) Method of generating display name of objects to be managed
CN108628862A (en) database addressing method, device and system
US7434227B2 (en) Portable business information content and management system
CN108459842A (en) A kind of model configuration method, device and electronic equipment
CN106161516A (en) For storing the method for data, device and system
US20080208797A1 (en) Automated record attribute value merging from multiple directory servers
CN106326411A (en) Configuration change method and device
CN112162731B (en) Data expansion method, device, storage medium and electronic device
US20200192784A1 (en) Estimating the number of coding styles by analyzing source code
US11151110B2 (en) Identification of records for post-cloning tenant identifier translation
CN110674137A (en) Data processing method and device, storage medium and electronic equipment
CN112988737B (en) Data storage method and device, data acquisition method and device and electronic equipment
US11443101B2 (en) Flexible pseudo-parsing of dense semi-structured text

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181009