CN106557705A - A kind of data access method and device - Google Patents
A kind of data access method and device Download PDFInfo
- Publication number
- CN106557705A CN106557705A CN201610994486.4A CN201610994486A CN106557705A CN 106557705 A CN106557705 A CN 106557705A CN 201610994486 A CN201610994486 A CN 201610994486A CN 106557705 A CN106557705 A CN 106557705A
- Authority
- CN
- China
- Prior art keywords
- data
- data access
- request
- access request
- database
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6227—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Abstract
The present embodiments relate to a kind of data access method and device, wherein the method include:Receiving data access request;Judge whether the data access request meets the default access consideration of system database;When the data access request does not meet the default access consideration of the system database, judge whether the data access request meets the default access consideration of extending database;When the data access request meets the default access consideration of the extending database, the corresponding request results of the data access request are returned.The embodiment of the present invention is by arranging a kind of extending database different from system database come data storage, when user cannot obtain the result of access request from system database, further determine whether request results are obtained from extending database, and request results are returned when obtaining, so that user is still able to access that extending database and obtains request results due to the reason such as limiting by System Privileges.
Description
Technical field
The present invention relates to database technical field, more particularly to a kind of data access method and device.
Background technology
With the fast development of science and technology, smart machine is gradually popularized.As computer, smart machine also has
The operating system of oneself, for being managed to smart machine and controlling.At present smart machine on the market mainly adopt with
Lower two kinds of operating system:The android system of Google, the IOS systems of Apple.
By taking android system as an example, system set-up information is generally held in a specific system library file.One
As in the case of, the system database can be changed during production of intelligent equipment by smart machine manufacturer, add oneself definition
Configuration information.
But, with being continuously increased for android system function, the addition of some New functions can limit user to this data
User can be set to limited users by the write in storehouse, such as some New functions.Limited by this New function, such as received above-mentioned
Under limit user model, the user can not change system and arrange (can not change system database).
Based on this, inventor has found that prior art has problems with during the present invention is realized:By system
When the authority of function is limited, user cannot access or change the data in system database.
The information for being disclosed in the background section is merely intended to increase the understanding of the general background to the present invention, and should not
When the prior art for being considered to recognize or imply the information structure in any form well known to persons skilled in the art.
The content of the invention
In view of this, embodiment of the present invention technical problem to be solved is how to provide a kind of by systemic-function
When authority is limited, the method that user still accessed or changed the data in system database.
To solve above technical problem, the embodiment of the present invention provides a kind of data access method on the one hand, including:Receive
Data access request;Receiving data access request;Judge whether the data access request meets the default visit of system database
Ask condition;When the data access request does not meet the default access consideration of the system database, judge that the data are visited
Ask whether request meets the default access consideration of extending database;When the data access request meets the extending database
During default access consideration, the corresponding request results of the data access request are returned.
In a kind of possible implementation, when the data access request meets the default access of the system database
During condition, return the corresponding request results of the data access request and not judge whether the data access request meets described
The default access consideration of extending database.
In a kind of possible implementation, the default access consideration include user have data base access rights and
There are the corresponding request results of the data access request in data base.
It is in a kind of possible implementation, described to judge whether the data access request meets the pre- of system database
If access consideration includes:Obtain the corresponding ID of the data access request;Judge that user is according to the ID
The no access rights with the system database;Whether there is the data access request pair in judging the system database
The request results answered, and exist in the user has the access rights of the system database and the system database
During the corresponding request results of the data access request, it is judged as that the data access request meets the default visit of system database
Ask condition.
In a kind of possible implementation, the method also includes:Receiving data write request, obtains number to be written
According to;By the data Cun Chudao extending database to be written.
To solve above technical problem, the embodiment of the present invention provides a kind of DAA on the other hand, including:Visit
Receiver module is asked, for receiving data access request;First judge module, for judging whether the data access request meets
The default access consideration of system database;Second judge module, for not meeting the system number when the data access request
According to storehouse default access consideration when, judge whether the data access request meets the default access consideration of extending database;Please
Processing module is sought, for meeting when the data access request during the default access consideration of the extending database, is returned described
The corresponding request results of data access request.
In a kind of possible implementation, second judge module is additionally operable to:When the data access request meets
During the default access consideration of the system database, return the corresponding request results of the data access request and do not judge described
Whether data access request meets the default access consideration of the extending database.
In a kind of possible implementation, the default access consideration include user have data base access rights and
There are the corresponding request results of the data access request in data base.
In a kind of possible implementation, first judge module includes:Mark acquisition submodule, for obtaining
State the corresponding ID of data access request;Authority judging submodule, for whether judging user according to the ID
Access rights with the system database;As a result judging submodule, for judging to whether there is in the system database
The corresponding request results of the data access request, and when the user has the access rights of the system database and institute
When there are the corresponding request results of the data access request in stating system database, it is judged as that the data access request meets
The default access consideration of system database.
In a kind of possible implementation, the device also includes:Write receiver module, please for receiving data write
Ask, obtain data to be written;Data memory module, for by the data Cun Chudao extending database to be written.
A kind of data access method provided in an embodiment of the present invention and device, it is a kind of different from system database by arranging
Extending database carry out data storage, when user cannot from system database obtain access request result when, determine whether
Whether request results can be obtained from extending database, and return request results when obtaining so that user due to
By System Privileges limited etc. reason cannot from system database obtain the result of access request when, be still able to access that spreading number
According to storehouse and request results are obtained, improve the efficiency of data access.Method and apparatus provided in an embodiment of the present invention is also newly write
In the data Cun Chudao extending database for entering, to ensure that user can be carried out to this partial data in time, easily access.
According to below with reference to the accompanying drawings, to detailed description of illustrative embodiments, the further feature and aspect of the present invention will become
It is clear.
Description of the drawings
One or more embodiments are illustrative by the picture in corresponding accompanying drawing, these exemplary theorys
Bright not constitute the restriction to embodiment, in accompanying drawing, the element with same reference numbers label is expressed as similar element, removes
Non- to have especially statement, composition is not limited the figure in accompanying drawing.
The flow chart that Fig. 1 illustrates a kind of data access method that the embodiment of the present invention 1 is provided;
The flow chart that Fig. 2 illustrates a kind of data access method that the embodiment of the present invention 2 is provided;
It is " described to judge whether the data access request meets system number during Fig. 3 illustrates 2 step S202 of the embodiment of the present invention
According to the default access consideration in storehouse " flow chart;
Fig. 4 shows the logic schematic diagram that data access is carried out by APP of the embodiment of the present invention 2;
Fig. 5 illustrates a kind of structural representation of DAA that the embodiment of the present invention 3 is provided;
Fig. 6 illustrates the structural representation of another kind of DAA that the embodiment of the present invention 4 is provided;
Fig. 7 illustrates a kind of structural representation of the first judge module 52 of DAA that the embodiment of the present invention 5 is provided
Figure;
Fig. 8 illustrates the hardware architecture diagram of the electronic equipment for performing data access method provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings, the specific embodiment of the present invention is described in detail, it is to be understood that the guarantor of the present invention
Shield scope is not limited by specific embodiment.
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Unless
Separately have other to explicitly indicate that, otherwise in entire disclosure and claims, term " including " or its conversion such as "comprising" or
" including " etc. will be understood to comprise stated element or ingredient, and not exclude other elements or other compositions
Part.
Special word " exemplary " means " being used as example, embodiment or illustrative " here.Here as " exemplary "
Illustrated any embodiment is should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details are given in specific embodiment below.
It will be appreciated by those skilled in the art that not having some details, the present invention can equally be implemented.In some instances, for
Method well known to those skilled in the art, means, element are not described in detail, in order to highlight the purport of the present invention.
Embodiment 1
The flow chart that Fig. 1 illustrates a kind of data access method provided in an embodiment of the present invention, as shown in figure 1, the method bag
Include:Step S101, step S102, step S103 and step S104.
Step S101:Receiving data access request.
Step S102:Judge whether the data access request meets the default access consideration of system database.
Step S103:When the data access request does not meet the default access consideration of the system database, judge
Whether the data access request meets the default access consideration of extending database.
Step S104:When the data access request meets the default access consideration of the extending database, institute is returned
State the corresponding request results of data access request.
A kind of data access method provided in an embodiment of the present invention, by arranging a kind of extension different from system database
Data base carrys out data storage, when user cannot obtain the result of access request from system database, further determines whether energy
It is enough that request results are obtained from extending database, and request results are returned when obtaining so that user is due to being
System authority limit etc. reason cannot from system database obtain access request result when, be still able to access that extending database simultaneously
Request results are obtained, the efficiency of data access is improve.
Embodiment 2
The flow chart that Fig. 2 illustrates another kind of data access method provided in an embodiment of the present invention, as shown in Fig. 2 the method
Including:Step S201, step S202, step S203, step S204, step S205 and step S206.
Step S201:Receiving data access request.
In embodiments of the present invention, data access request can be read request.
Step S202:Judge whether the data access request meets the default access consideration of system database.
When the data access request of user is received, in addition it is also necessary to whether meet system database to the data access request
Default access consideration judged, that is, judge whether to obtain from system database and request results return to user.
In a kind of possible implementation, the default access consideration include user have data base access rights and
There are the corresponding request results of the data access request in data base.
In a kind of possible implementation, judge whether the data access request meets system as shown in figure 3, described
The default access consideration of data base includes:
Step A1:Obtain the corresponding ID of the data access request.
In embodiments of the present invention, ID can for example be user account, not limited to this.
Step A2:Judge whether user has the access rights of the system database according to the ID.
In embodiments of the present invention, for example the validated user of ID and system database mark can be carried out
Match somebody with somebody, if the match is successful, user has the access rights of the system database;If it fails to match, user does not have
The access rights of the system database.
Step A3:Whether there is the corresponding request results of the data access request in judging the system database, and
And exist in the user has the access rights of the system database and the system database data access please
When seeking corresponding request results, it is judged as that the data access request meets the default access consideration of system database.
In embodiments of the present invention, the judge process of step A2 and A3 can be carried out simultaneously, it is also possible to first be walked
The judgement of rapid A2, then the judgement for carrying out step A3.
Step S203:When the data access request does not meet the default access consideration of the system database, judge
Whether the data access request meets the default access consideration of extending database.
In method provided in an embodiment of the present invention, the data base of data storage is also set up in addition to system database
One extending database, the extending database are used for storing newly-increased data.When user cannot access system database, after
It is continuous to judge whether to be able to access that the extending database.Typically, since the requirement of some systemic-functions, accesses system to user
The authority of data base can be limited, but extending database provided in an embodiment of the present invention is relative with original system database only
It is vertical, the access rights of user are not limited, therefore can provide the user much sooner, easily data access service.
In a kind of possible implementation, when the data access request meets the default access of the system database
During condition, return the corresponding request results of the data access request and not judge whether the data access request meets described
The default access consideration of extending database.
It will be understood by those skilled in the art that in embodiments of the present invention, when the data access request meets the system
During the default access consideration of system data base, illustrate that user is present in having the access rights and system database of system database and be somebody's turn to do
The corresponding request results of data access request, now directly can obtain request results from the system database, also just need not be again
Request results are obtained from extending database, i.e., need not judge whether data access request meets the default visit of extending database again
Ask condition.
But in the implementation of another possibility, when the data access request meets the pre- of the system database
If during access consideration, it is also possible to continue executing with and " judge whether the data access request meets the default of the extending database
The step of access consideration ", and then when the default access consideration that data access request had both met system database also complies with spreading number
According to storehouse default access consideration when, simultaneously can obtain request results or from system number from system database and extending database
Request results are obtained according to one of storehouse, extending database;When data access request meets the default visit of the system database
When asking condition and not meeting the default access consideration of extending database, only request results can be obtained from system database.
Method provided in an embodiment of the present invention is only illustrated to above-mentioned implementation, and is not limited,
Every those skilled in the art it is conceivable that by judging whether data access request meets system database, extending database
Default access consideration, should be included within the scope of the present invention in the method for obtaining request results.
In embodiments of the present invention, " judge whether the data access request meets the default access bar of extending database
Part " realize process and step S202 in " judge whether the data access request meets the default access bar of system database
Part " realizes similar process, including:
Step B1:Judge whether user has the access rights of the extending database according to the ID;
Step B2:Whether there is the corresponding request results of the data access request in judging the extending database, and
And exist in the user has the access rights of the extending database and the extending database data access please
When seeking corresponding request results, it is judged as that the data access request meets the default access consideration of extending database.
Step S204:When the data access request meets the default access consideration of the extending database, institute is returned
State the corresponding request results of data access request.
When judging that user has the access rights of extending database, and in extending database, there is the data access
Ask corresponding request results, it is possible to request results are returned to user.
As a example by carrying out data access by APP, the logic theory of step S201- step S204 is as shown in Figure 4.
Step S205:Receiving data write request, obtains data to be written.
In embodiments of the present invention, user may need to read the data in system database or extending database
Take, it is also possible to need to write data in system database or extending database.
Step S206:By the data Cun Chudao extending database to be written.
Due in embodiments of the present invention, increased an extending database for storing newly-increased data, in order to prevent
Newly-increased data are only stored in system database causes user carry out subsequent access, therefore, to the write data for increasing newly,
Store in extending database.
In embodiments of the present invention, newly-increased data can be write in extending database and system database simultaneously, also may be used
To be only written in extending database.
It will be understood by those skilled in the art that the embodiment of the present invention is not limited to the execution sequence of said method,
Step S205 and step S206 can be performed in the random time point for implementing present invention method.
A kind of data access method provided in an embodiment of the present invention, by arranging a kind of extension different from system database
Data base carrys out data storage, when user cannot obtain the result of access request from system database, further determines whether energy
It is enough that request results are obtained from extending database, and request results are returned when obtaining so that user is due to being
System authority limit etc. reason cannot from system database obtain access request result when, be still able to access that extending database simultaneously
Request results are obtained, the efficiency of data access is improve.Method provided in an embodiment of the present invention is also by the data storage of new write
To in extending database, to ensure that user can be carried out to this partial data in time, easily access.
Embodiment 3
Fig. 5 illustrates a kind of structural representation of DAA provided in an embodiment of the present invention, as shown in figure 5, the dress
Put including:Access receiver module 51, the first judge module 52, the second judge module 53 and request processing module 54.
Receiver module 51 is accessed, for receiving data access request;
First judge module 52, for judging whether the data access request meets the default access bar of system database
Part;
Second judge module 53, for the default access bar of the system database is not met when the data access request
During part, judge whether the data access request meets the default access consideration of extending database;
Request processing module 54, for meeting the default access consideration of the extending database when the data access request
When, return the corresponding request results of the data access request.
A kind of DAA provided in an embodiment of the present invention, by arranging a kind of extension different from system database
Data base carrys out data storage, when user cannot obtain the result of access request from system database, further determines whether energy
It is enough that request results are obtained from extending database, and request results are returned when obtaining so that user is due to being
System authority limit etc. reason cannot from system database obtain access request result when, be still able to access that extending database simultaneously
Request results are obtained, the efficiency of data access is improve.
Embodiment 4
Fig. 6 illustrates a kind of structural representation of DAA provided in an embodiment of the present invention, as shown in fig. 6, the dress
Put including:Access receiver module 51, the first judge module 52, the second judge module 53 and request processing module 54, write to receive
Module 45 and data memory module 46.
Receiver module 51 is accessed, for receiving data access request;
First judge module 52, for judging whether the data access request meets the default access bar of system database
Part;
Second judge module 53, for the default access bar of the system database is not met when the data access request
During part, judge whether the data access request meets the default access consideration of extending database;
Request processing module 54, for meeting the default access consideration of the extending database when the data access request
When, return the corresponding request results of the data access request.
Write receiver module 45, for receiving data write request, obtains data to be written;
Data memory module 46, for by the data Cun Chudao extending database to be written.
In a kind of possible implementation, second judge module 53 is additionally operable to:When the data access request is accorded with
When closing the default access consideration of the system database, return the corresponding request results of the data access request and do not judge institute
State the default access consideration whether data access request meets the extending database.
In a kind of possible implementation, the default access consideration include user have data base access rights and
There are the corresponding request results of the data access request in data base.
In a kind of possible implementation, as shown in fig. 7, first judge module 52 includes:
Mark acquisition submodule 521, for obtaining the corresponding ID of the data access request;
Authority judging submodule 522, for judging whether user has the system database according to the ID
Access rights;
As a result judging submodule 523, for judging to whether there is the data access request pair in the system database
The request results answered, and exist in the user has the access rights of the system database and the system database
During the corresponding request results of the data access request, it is judged as that the data access request meets the default visit of system database
Ask condition.
A kind of DAA provided in an embodiment of the present invention, by arranging a kind of extension different from system database
Data base carrys out data storage, when user cannot obtain the result of access request from system database, further determines whether energy
It is enough that request results are obtained from extending database, and request results are returned when obtaining so that user is due to being
System authority limit etc. reason cannot from system database obtain access request result when, be still able to access that extending database simultaneously
Request results are obtained, the efficiency of data access is improve.Device provided in an embodiment of the present invention is also by the data storage of new write
To in extending database, to ensure that user can be carried out to this partial data in time, easily access.
Embodiment 5
A kind of non-transient (non-volatile) computer-readable storage medium is embodiments provided, the Computer Storage is situated between
Matter is stored with computer executable instructions, and the computer executable instructions can perform the method in above-mentioned any means embodiment.
Embodiment 6
Fig. 8 is the hardware architecture diagram of the electronic equipment for performing data access method provided in an embodiment of the present invention, such as
Shown in figure, the equipment includes one or more processors 810 and memorizer 820.By taking a processor 810 as an example.The equipment
Can also include:Input equipment 830 and output device 840.
Processor 810, memorizer 820, input equipment 830 and output device 840 can pass through bus or other modes
Connection, in Fig. 8 as a example by being connected by bus.
Memorizer 820 can be used to storing non-transient software program, non-as a kind of non-transient computer readable storage medium storing program for executing
Transient computer executable program and module.Processor 810 is stored in the non-transient software journey in memorizer 820 by operation
Sequence, instruction and module, so as to perform various function application and the data processing of electronic equipment, that is, realize that said method is implemented
The processing method of example.
Memorizer 820 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;Storage data field can data storage etc..Additionally, memorizer 820 can include
High-speed random access memory, can also include non-transient memorizer, for example, at least one disk memory, flush memory device,
Or other non-transient solid-state memories.In certain embodiments, memorizer 820 is optional including long-range relative to processor 810
The memorizer of setting, these remote memories can be by network connections to processing meanss.The example of above-mentioned network is included but not
It is limited to the Internet, intranet, LAN, mobile radio communication and combinations thereof.
Input equipment 830 can receives input numeral or character information, and produce signal input.Output device 840 can
The display device such as including display screen.
One or more of module stores in the memorizer 820, when by one or more of processors
During 810 execution, perform:Receiving data access request;Judge whether the data access request meets the default of system database
Access consideration;When the data access request does not meet the default access consideration of the system database, the data are judged
Whether access request meets the default access consideration of extending database;When the data access request meets the extending database
Default access consideration when, return the corresponding request results of the data access request.
In a kind of possible implementation, when the data access request meets the default access of the system database
During condition, return the corresponding request results of the data access request and not judge whether the data access request meets described
The default access consideration of extending database.
In a kind of possible implementation, the default access consideration include user have data base access rights and
There are the corresponding request results of the data access request in data base.
It is in a kind of possible implementation, described to judge whether the data access request meets the pre- of system database
If access consideration includes:Obtain the corresponding ID of the data access request;Judge that user is according to the ID
The no access rights with the system database;Whether there is the data access request pair in judging the system database
The request results answered, and exist in the user has the access rights of the system database and the system database
During the corresponding request results of the data access request, it is judged as that the data access request meets the default visit of system database
Ask condition.
In a kind of possible implementation, one or more of modules are also performed:Receiving data write request, obtains
Take data to be written;By the data Cun Chudao extending database to be written.
A kind of electronic equipment provided in an embodiment of the present invention, by arranging a kind of growth data different from system database
Data storage is carried out in storehouse, and when user cannot obtain the result of access request from system database, further determining whether can be from
Request results are obtained in extending database, and request results is returned when obtaining so that user is due to being weighed by system
Limit limit etc. reason cannot from system database obtain access request result when, be still able to access that extending database and obtain
Request results, improve the efficiency of data access.Electronic equipment provided in an embodiment of the present invention is also by the data storage of new write
To in extending database, to ensure that user can be carried out to this partial data in time, easily access.
The method provided by the executable embodiment of the present invention of the said goods, possesses the corresponding functional module of execution method and has
Beneficial effect.Ins and outs of detailed description in the present embodiment, not can be found in the method provided by the embodiment of the present invention.
Electronic equipment provided in an embodiment of the present invention is present in a variety of forms, including but not limited to following equipment.
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low
End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, has calculating and processes work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio frequency,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server:The equipment of the service of calculating is provided, the composition of server includes that processor, hard disk, internal memory, system are total
Line etc., server are similar with general computer architecture, but due to needing to provide highly reliable service, therefore processing energy
The aspects such as power, stability, reliability, safety, extensibility, manageability require higher.
(5) other have the electronic installation of data interaction function.
Device embodiment described above is only schematic, wherein the unit as separating component explanation can
To be or may not be physically separate, as the part that unit shows can be or may not be physics list
Unit, you can local to be located at one, or can also be distributed on multiple NEs.Which is selected according to the actual needs can
In some or all of module realizing the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
By software plus general hardware platform mode realizing, naturally it is also possible to by hardware.Based on such understanding, above-mentioned technology
The part that scheme is substantially contributed to correlation technique in other words can be embodied in the form of software product, the computer
Software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions to
So that computer equipment (can be personal computer, server, or network equipment etc.) perform each embodiment or
Method described in some parts of embodiment.
Finally it should be noted that:Above example only to illustrate technical scheme, rather than a limitation;Although
With reference to the foregoing embodiments the present invention has been described in detail, it will be understood by those within the art that:Which still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (11)
1. a kind of data access method, it is characterised in that include:
Receiving data access request;
Judge whether the data access request meets the default access consideration of system database;
When the data access request does not meet the default access consideration of the system database, judge that the data access please
The no default access consideration for meeting extending database of Seeking Truth;
When the data access request meets the default access consideration of the extending database, the data access request is returned
Corresponding request results.
2. data access method according to claim 1, it is characterised in that when the data access request meets the system
During the default access consideration of system data base, return the corresponding request results of the data access request and do not judge that the data are visited
Ask whether request meets the default access consideration of the extending database.
3. data access method according to claim 1, it is characterised in that the default access consideration includes that user has
There are the corresponding request results of the data access request in the access rights of data base and data base.
4. data access method according to claim 3, it is characterised in that described whether to judge the data access request
The default access consideration for meeting system database includes:
Obtain the corresponding ID of the data access request;
Judge whether user has the access rights of the system database according to the ID;
Whether there is the corresponding request results of the data access request in judging the system database, and work as the user
There is the corresponding request of the data access request in access rights with the system database and the system database
When as a result, it is judged as that the data access request meets the default access consideration of system database.
5. data access method according to claim 1, it is characterised in that the method also includes:
Receiving data write request, obtains data to be written;
By the data Cun Chudao extending database to be written.
6. a kind of DAA, it is characterised in that include:
Receiver module is accessed, for receiving data access request;
First judge module, for judging whether the data access request meets the default access consideration of system database;
Second judge module, for not meeting when the data access request during the default access consideration of the system database,
Judge whether the data access request meets the default access consideration of extending database;
Request processing module, for meeting when the data access request during the default access consideration of the extending database, returns
Return the corresponding request results of the data access request.
7. DAA according to claim 6, it is characterised in that second judge module is additionally operable to:Work as institute
When stating data access request and meeting the default access consideration of the system database, returning that the data access request is corresponding please
Seek result and do not judge whether the data access request meets the default access consideration of the extending database.
8. DAA according to claim 6, it is characterised in that the default access consideration includes that user has
There are the corresponding request results of the data access request in the access rights of data base and data base.
9. DAA according to claim 8, it is characterised in that first judge module includes:
Mark acquisition submodule, for obtaining the corresponding ID of the data access request;
Authority judging submodule, for judging whether user has the access right of the system database according to the ID
Limit;
As a result judging submodule, for judging to whether there is the corresponding request of the data access request in the system database
As a result, and in the user has the access rights of the system database and the system database there are the data
During the corresponding request results of access request, it is judged as that the data access request meets the default access consideration of system database.
10. data access method according to claim 6, it is characterised in that the device also includes:
Write receiver module, for receiving data write request, obtains data to be written;
Data memory module, for by the data Cun Chudao extending database to be written.
11. a kind of electronic equipment, including:
At least one processor;And,
The memorizer being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of at least one computing device, and the instruction is by described at least one
Reason device is performed, so that at least one processor is able to carry out the method any one of claim 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610994486.4A CN106557705A (en) | 2016-11-10 | 2016-11-10 | A kind of data access method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610994486.4A CN106557705A (en) | 2016-11-10 | 2016-11-10 | A kind of data access method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106557705A true CN106557705A (en) | 2017-04-05 |
Family
ID=58444115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610994486.4A Pending CN106557705A (en) | 2016-11-10 | 2016-11-10 | A kind of data access method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106557705A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109558433A (en) * | 2017-09-27 | 2019-04-02 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus requesting access to HDFS |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140052384A1 (en) * | 2007-05-07 | 2014-02-20 | Trimble Navigation Limited | Telematic asset microfluidic analysis |
CN103927326A (en) * | 2014-03-18 | 2014-07-16 | 深圳市迈科龙电子有限公司 | Bidirectional synergy method and bidirectional synergy system for database data |
CN105183751A (en) * | 2015-07-13 | 2015-12-23 | 深信服网络科技(深圳)有限公司 | Database access method and database access device |
CN105426373A (en) * | 2014-09-19 | 2016-03-23 | 阿里巴巴集团控股有限公司 | Database synchronization method and device |
CN105528373A (en) * | 2014-10-21 | 2016-04-27 | 阿里巴巴集团控股有限公司 | Database fault processing method, device, system and server |
-
2016
- 2016-11-10 CN CN201610994486.4A patent/CN106557705A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140052384A1 (en) * | 2007-05-07 | 2014-02-20 | Trimble Navigation Limited | Telematic asset microfluidic analysis |
CN103927326A (en) * | 2014-03-18 | 2014-07-16 | 深圳市迈科龙电子有限公司 | Bidirectional synergy method and bidirectional synergy system for database data |
CN105426373A (en) * | 2014-09-19 | 2016-03-23 | 阿里巴巴集团控股有限公司 | Database synchronization method and device |
CN105528373A (en) * | 2014-10-21 | 2016-04-27 | 阿里巴巴集团控股有限公司 | Database fault processing method, device, system and server |
CN105183751A (en) * | 2015-07-13 | 2015-12-23 | 深信服网络科技(深圳)有限公司 | Database access method and database access device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109558433A (en) * | 2017-09-27 | 2019-04-02 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus requesting access to HDFS |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160232374A1 (en) | Permission control method and apparatus | |
WO2016173348A1 (en) | Network access method and mobile communications terminal | |
CN106034138B (en) | A kind of remote service calling method and device | |
CN109284321B (en) | Data loading method, device, computing equipment and computer readable storage medium | |
CN105446811A (en) | Application process associated starting method and associated starting apparatus | |
US20170289243A1 (en) | Domain name resolution method and electronic device | |
US20170277526A1 (en) | Software categorization method and electronic device | |
CN105183464B (en) | Information display method and device and electronic equipment | |
CN106648612A (en) | Popup window configuration method and device | |
CN104268472B (en) | Reduction is by the method and apparatus of third party's dynamic base Modification growth function address | |
US20210119460A1 (en) | Resource statistics collection method and apparatus and terminal | |
CN106027517B (en) | A kind of game subpackage method and apparatus supported by all kinds of means | |
CN106815042A (en) | The dynamic loading method of refresh page, device and electronic equipment | |
CN103176800A (en) | Application program login method and device | |
CN104463062B (en) | Access method and system based on two-dimensional code scanning | |
CN106815283A (en) | Data processing method, device and electronic equipment | |
CN106681714A (en) | Method and device for setting program environments and electronic equipment | |
CN105491153A (en) | Sharing method and device and mobile terminal | |
CN106557705A (en) | A kind of data access method and device | |
CN108241696A (en) | Obtain the method, apparatus and system of map datum | |
CN110837499A (en) | Data access processing method and device, electronic equipment and storage medium | |
CN106530054A (en) | Method and device for sharing service data, and electronic equipment | |
US9189633B2 (en) | Download management method and device based on android browser | |
US9491784B2 (en) | Streaming common media content to multiple devices | |
US20170272952A1 (en) | User Management Method and Electronic Device |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170405 |