CN106777352A - Data access method and system - Google Patents
Data access method and system Download PDFInfo
- Publication number
- CN106777352A CN106777352A CN201710034607.5A CN201710034607A CN106777352A CN 106777352 A CN106777352 A CN 106777352A CN 201710034607 A CN201710034607 A CN 201710034607A CN 106777352 A CN106777352 A CN 106777352A
- Authority
- CN
- China
- Prior art keywords
- database
- rear end
- storing process
- access request
- name
- 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
- 238000000034 method Methods 0.000 title claims abstract description 131
- 230000008569 process Effects 0.000 claims abstract description 106
- 230000006870 function Effects 0.000 claims abstract description 13
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000008859 change Effects 0.000 abstract description 4
- 238000011161 development Methods 0.000 description 28
- 238000005516 engineering process Methods 0.000 description 28
- 238000012423 maintenance Methods 0.000 description 8
- 238000007792 addition Methods 0.000 description 6
- 238000012217 deletion Methods 0.000 description 5
- 230000037430 deletion Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000003287 bathing Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 239000010979 ruby Substances 0.000 description 2
- 229910001750 ruby Inorganic materials 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 206010016256 fatigue Diseases 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Classifications
-
- 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/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- 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/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention proposes a kind of data access method and system, and its method includes:End system sends the http access requests for accessing database store process to front end page backward, and the access request is distributed into the database by rear end;Database receives the access request that rear end sends, and performs corresponding storing process according to access request, and implementing result is returned into the front end by the rear end;After the implementing result that front end receiver is returned to the rear end, correspondence javascript functions reconstruct front end page is performed according to the implementing result and is shown.The present invention is by using the direct-connected databases of javascript, once write back-end code, no matter how database table changes, without writing back-end code again, only need to write or change the storing process specified, substantial amounts of saving entreprise cost, saves developer's time, and efficiency higher is brought to enterprise.
Description
Technical field
The present invention relates to database technical field, more particularly to a kind of data access method and system.
Background technology
The core of Internet technology and software engineering is the operation to database, and in order to encapsulation of data storehouse accesses, raising is opened
Hair speed, various language are each provided with framework technology, are easy to developer to develop, such as:Asp.NET frameworks Entity
FrameWork, PHP framework ThinkPHP, CI, Java framework Spring, HiberNate etc..
But, existing framework technology has following defect:
First, learning cost is high, and one door frame technology of association generally requires the time of more than 1 year, is proficient in, and more needs for many years
The accumulation of experience.
2nd, execution efficiency is low, and all framework technologies exchange development efficiency for reduce executing efficiency, cause system
Access speed is slow.
3rd, size of code is huge, difficult in maintenance, and before developer does not start coding also, framework has automatically generated number
100000 line codes.
4th, the life-span of framework is low, can all have new framework to produce every year, has old framework to wither away.Framework such as selection does not have
People's maintenance, can cause project to be died on the vine.
5th, the maintenance of framework is big, and many projects are developed using old framework technology, relies on big to operating system, than
Such as:Some php projects can be only installed in ubutu8 operating systems, and Ubuntu has been upgraded to ubuntu16 now, is
Enable that legacy system is normally run, it has to the operating system that old, no one safeguards is installed, so far, this project is declared substantially
Accuse dead.
Therefore, available frame technology complicates simple question, and learning cost is high, and execution efficiency is low, the dimension of framework
Shield amount is big.
The content of the invention
The main purpose of this hair invention is to provide the data visit that a kind of learning cost is low, execution efficiency is high, be easy to maintenance
Ask method and system.
To achieve the above object, the present invention proposes a kind of data access method, comprises the following steps:
End system sends the http access requests for accessing database store process to front end page backward, and the access request is extremely
Include the parameter of address, database name, the name of storing process and the storing process of the database less, by the rear end
The access request is distributed to the database;
The database receives the access request that the rear end sends, and is performed according to the access request and stored accordingly
Journey, and implementing result is returned into the front end by the rear end;
After the implementing result that the front end receiver is returned to the rear end, performed according to the implementing result corresponding
Javascript functions reconstruct front end page and show.
Further technical scheme of the invention is that end system sends access database purchase mistake to the front end page backward
Also include before the step of http access requests of journey:
The storing process of form and operation form is set up in database.
Further technical scheme of the invention is that the access request is sent to the step of the database for the rear end
Suddenly include:
The name of the storing process and the storage are split out in the access request that the rear end is transmitted from the front end
The parameter of process, the database is sent to by the parameter of the name of the storing process and the storing process.
Further technical scheme of the invention is the step of implementing result is returned to the front end by the rear end
Including:
The data of the implementing result are converted to json data and return to the front end by the rear end;
After the implementing result that the front end receiver is returned to the rear end, performed according to the implementing result corresponding
Javascript functions reconstruct front end page and include the step of display:
After the json data that the front end receiver is returned to the rear end, before being reconstructed using Javascript, html or css
End page face simultaneously shows.
Further technical scheme of the invention is that the access request is asked for Ajax;The access request includes:Afterwards
Front end is returned after end address, corresponding database address, corresponding database, parameter array and database have performed storing process
Letter of transfer number, wherein:The parameter array includes database address, database name, the name of the storing process and storing process
Parameter.
The present invention also proposes a kind of data access system, including front end and database, the front end and database with it is rear
End communication is connected;Wherein:
The front end, the access request for accessing database store process is sent for rear end, and the access request is at least
The parameter of address, database name, the name of storing process and the storing process including the database, will by the rear end
The access request is distributed to the database;
The database, for receiving the access request that the rear end sends, performs corresponding according to the access request
Storing process, and implementing result is returned into the front end by the rear end;
The front end, after being additionally operable to receive the implementing result that the rear end returns, it is right to be performed according to the implementing result
The javascript functions answered reconstruct front end page and show.
Further technical scheme of the invention is that the database is additionally operable to set up form and operation in database
The storing process of form.
Further technical scheme of the invention is that the rear end is additionally operable to from the access request of front end transmission
The name of the storing process and the parameter of the storing process are split out, by the name of the storing process and described was stored
The parameter of journey is sent to the database.
Further technical scheme of the invention is that the rear end is additionally operable to be converted to the data of the implementing result
Json data return to the front end;
The front end, after being additionally operable to the json data that the front end receiver is returned to the rear end, using Javascript,
Html or css reconstruct front end pages simultaneously show.
Further technical scheme of the invention is that the access request is asked for Ajax;The access request includes:Afterwards
Front end is returned after end address, corresponding database address, corresponding database, parameter array and database have performed storing process
Letter of transfer number, wherein:The parameter array includes database address, database name, the name of the storing process and storing process
Parameter.
The beneficial effects of the invention are as follows by using the direct-connected databases of javascript, no matter once writing back-end code
How data form changes, and without writing back-end code again, need to only write storing process, saves entreprise cost, saves exploitation
Personnel time.
Compared to existing technology, the invention has the advantages that:
1st, internet exploitation learning cost is reduced
In computer program circle, the time-consuming effort of study of the language such as java, php, asp.net, ruby, in order to solve data
The problems such as changing is looked into storehouse additions and deletions, many set frameworks has been write out both at home and abroad, such as:hibernate,spring,entity
Framework etc..These skeleton code amounts are huge, and learning cost is high, and execution efficiency is low, once there is more preferable framework, early stage
Study it is substantially bathing.
2nd, industry working standard is reduced
Programmer can not learn active computer backstage language, such as:Can be opened in the case of PHP, Java, Net etc.
Hair the Internet, applications so that industry working standard is further reduced.
3rd, the development cost of IT internet industrys more than 50% is saved.Help enterprise cost-effective, it is substantial amounts of not soft in needs
Part developer, attendant.If using the method, conservative estimation, can save more than enterprise 50%-80% exploitation into
This.
4th, program speed is faster
Using this invention, back-end code amount is no more than 500 rows, compared to frameworks, generation such as reference hibernate, spring
Code amount is negligible, and execution route is short.Most of logic is performed using storing process, because storing process is built-in database
Language, its execution efficiency pieces together fast 10 times or so of mysql sentences than backstage.
5th, development efficiency is high
Without engaging the background program persons such as java, php again, human cost is reduced, maintenance cost, development efficiency is carried at double
It is high.The project that 2 years complete before estimating, using this technology, can complete for 1 year.
6th, cost of implementation is low
The development approach of the present invention program, can simplify programming process, and backstage size of code is no more than 500 rows, you can complete
Identical task, and perform speed soon, development efficiency is high, does not limit computer language, it is possible to use any computer language
Realize the method.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of data access method first embodiment of the present invention;
Fig. 2 is the schematic flow sheet without rear end development mode in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of data access method second embodiment of the present invention;
Fig. 4 is the block schematic illustration of data access system preferred embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The embodiment of the present invention it is considered that by being devoted for years to the research and development in Internet technology, after finding Internet technology
Above is the additions and deletions in processing data storehouse are looked into and changed, each company, tissue, individual has write many frameworks, learning framework to platform 80%
The process of technology is taken time and effort, and root problem is not solved really, learns too tired out, too tired.
The present invention proposes a kind of solution, no longer writes the codes such as existing java, net, php, nodejs, can solve
Put in the world more than 80% programmer.To allow productivity that more than 50% is played it industries more.
The method for solving this problem is, using the direct-connected databases of javascript, once to write back-end code, no matter data
How form changes, without writing back load operation computer subsystem again.Its principle is as follows:
After the storing process of form and operation form is established in database, sayed using any one amoyese behind the door, preceding
The parameter of end AJAX transmission is split as database address, database name, storing process name, storing process parameter, then storing
Journey name, storing process parameter is intact to be delivered to database, after database receives request, performs this storing process, returns
Data to backstage language are returned, backstage language returns to foreground HTML after list data is converted to Json forms, and HTML is received
The page is rebuild after the information of return.
Specifically, shown in reference picture 1, a kind of data access method that first embodiment of the invention is proposed, including following step
Suddenly:
Step S101, end system sends the http access requests for accessing database store process to front end page backward, described
The parameter of the access request at least address including the database, database name, the name of storing process and the storing process,
The access request is distributed to the database by the rear end;
This embodiment scheme is related to front end, rear end and database, wherein:
The storing process of form and operation form is pre-established with database.
First, when front end needs to access database, end system sends access database store process to front end page backward
Http access requests, the name of the storing process and the parameter of the storing process are carried in the access request.
Using Ajax technologies, amoyese speech sends request backward for front end, transmits storing process name and parameter to rear end.
Wherein, Ajax sends and asks form as follows:
But also oneself writes Ajax, rear end instruction is transmit a request to, need to include storing process address, storing process in request
Name, storing process parameter.
After rear end receives access request, when the access request is distributed to the database by rear end, the rear end from
The name of the storing process and the parameter of the storing process are split out in the access request of the front end transmission, is deposited described
The parameter of the name of storage process and the storing process is distributed to the database.
Step S102, the database receives the access request that the rear end sends, and phase is performed according to the access request
The storing process answered, and implementing result is returned into the front end by the rear end;
Database receives the access request that the rear end sends, and corresponding storing process is performed according to the access request,
And implementing result is returned into the front end by the rear end.
Wherein, the data of the implementing result are converted to json data and return to the front end by the rear end.
Step S103, after the implementing result that the front end receiver is returned to the rear end, performs according to the implementing result
Corresponding javascript functions reconstruct front end page simultaneously shows.
After the json data that the front end receiver is returned to the rear end, before being reconstructed using Javascript, html or css
End page face simultaneously shows.
Appeal function, such as Java or PHP or Net can be realized using any backstage language, code does not surpass typically
Cross 300 rows.
In actual applications, after writing code according to above-mentioned steps 1-3, then Development Framework has been put up, has made item
Back-end code can be no longer write during mesh, form only need to be set up in database, set up storing process, front-end A jax just can be straight
Storing process is asked in receiving.Every place for accessing database during later exploration project, need to only save according to the above-mentioned method of step
Slightly backstage Programming with Pascal Language, uses manpower and material resources sparingly, and improves development efficiency.
Compared to existing technology, the invention has the advantages that:
1st, internet exploitation learning cost is reduced
In computer program circle, the time-consuming effort of study of the language such as java, php, asp.net, ruby, in order to solve data
The problems such as changing is looked into storehouse additions and deletions, many set frameworks has been write out both at home and abroad, such as:hibernate,spring,entity
Framework etc..These skeleton code amounts are huge, and learning cost is high, and execution efficiency is low, once there is more preferable framework, early stage
Study it is substantially bathing.
2nd, industry working standard is reduced
Programmer can not learn active computer backstage language, such as:Can be opened in the case of PHP, Java, Net etc.
Hair the Internet, applications so that industry working standard is further reduced.
3rd, the development cost of IT internet industrys more than 50% is saved.Help enterprise cost-effective, it is substantial amounts of not soft in needs
Part developer, attendant.If using the method, conservative estimation, can save more than enterprise 50%-80% exploitation into
This.
4th, program speed is faster
Using this patent of invention, back-end code amount is no more than 500 rows, compared to framves such as reference hibernate, spring
Structure, size of code is negligible, and execution route is short.Most of logic is performed using storing process, because storing process is data
The built-in language in storehouse, its execution efficiency pieces together fast 10 times or so of mysql sentences than backstage.
5th, development efficiency is high
Without engaging the background program persons such as java, php again, human cost is reduced, maintenance cost, development efficiency is carried at double
It is high.The project that 2 years complete before estimating, using this technology, can complete for 1 year.
6th, cost of implementation is low
The development approach of the present invention program, can simplify programming process, and backstage size of code is no more than 500 rows, you can complete
Identical task, and perform speed soon, development efficiency is high, does not limit computer language, it is possible to use any computer language
Realize the method.
The present invention program can be as follows with application field:
1st, the IT internet industrys of database need to be used,
Database technology can be directly connected to using javascript, save backstage developer, be that enterprise saves 50%
Above development capital.
2nd, the Software Industry of database need to be used,
Database technology can be directly connected to using javascript, save backstage developer, be that enterprise saves 50%
Above development capital.
3rd, the exploitation of more than the 80% of existing internet,
The technology that can be listed using the present invention.The technology of database can be directly connected to using javascript, be saved
Backstage developer is gone, is that enterprise saves more than 50% development capital.
4th, Android platform App writes.
The technology of database can be directly connected to using javascript using the development mode of the embedded webpage of browser,
Backstage developer is saved, is that enterprise saves more than 50% development capital.
5th, Apple platforms apple App writes,
The technology of database can be directly connected to using javascript using the development mode of the embedded webpage of browser,
Backstage developer is saved, is that enterprise saves more than 50% development capital.
6th, any other being capable of writing using the app of the platform of browser
The technology of database can be directly connected to using javascript using the development mode of the embedded webpage of browser,
Backstage developer is saved, is that enterprise saves more than 50% development capital.
The application mode of the present invention program
Storing process is set up in step 1, database, carries out additions and deletions to form and look into change operation.
Step 2, front end send Ajax requests, transmission database address, storing process name, storing process ginseng to the back-end
Number.After rear end receives information, the information is remained untouched and is sent to storing process, database performs storing process, return to knot
Fruit arrives front end;
The result that step 3, front end return according to database changes the effect that front end is presented to user.
Shown in reference picture 2, a kind of data access method that second embodiment of the invention is proposed, based on shown in above-mentioned Fig. 1
Embodiment, in above-mentioned steps S101:Also wrapped before sending the access request for accessing database store process to the back-end the front end
Include:
Step S100, sets up the storing process of form and operation form in database.
The storing process of form and operation form is set up in database.Storing process selectAllData is set up, is chosen
All data in form.
In actual applications, the work(that the present invention is introduced can be realized with any computer background language combination front-end A jax
Can, rear end is delivered to front end parameter is intact, rear end receives intact after the parameter of front end transmission passing to
Storing process, storing process performs database additions and deletions search operation according to the parameter for receiving, and returns data to front end, front end
Page effect is presented according to the data for returning.
Existing Internet technology pays attention to rear end, ignores front end, and the development time of programmer 80% is all wasted in rear end, when
Database to the addition of newly increased in form, or form delete in field, or form and repair in certain field, or form
Field is changed, it has to recompilate or rewrite the codes such as java, net, php again, programmer is very tired, and the present invention is proposed
A kind of new method, no matter how database table changes, and programmer no longer writes backstage code.
Compared to existing technology, first generation web technology is using traditional programming mode, HTML, the front-end code such as CSS and PHP,
The rear end instruction such as java is mixed to be write on and cause together that AM/BAM logic is unclear, and encoding amount is big, and maintenance workload is big, Local hydrodynamic unit data
It is difficult.Second generation web technology uses mvc patterns, and front end HTML, the language such as CSS codes and rear end PHP, java is separated, preceding
End recycles the ORM technical operation databases such as spring, hibernate using ajax technologies Transfer Parameters to rear end, rear end, by
Strictly disjointed in front and back end, front end can make abundant special efficacy using javascript, but back-end code amount is equally huge.
First two mode is directed to modification database and must change backstage code, and as project expands, size of code is increasingly
Increase developer and attendant, it is necessary to more.
If using the method for the present invention, back-end code amount is never with change, it is only necessary to can write database purchase mistake
Journey can complete a project, not limit item size, can save substantial amounts of software developer, attendant.Its is specific
It is embodied in:
1st, encapsulation IT industries backstage development process, no longer writes the codes such as rear end Java, Net, PHP, save more than 50%
Development cost.
2nd, the codes such as rear end Java, Net, PHP are no longer write, mitigates programmer's workload more than 50%.
3rd, the codes such as rear end Java, Net, PHP are no longer write, code maintenance amount more than 50% is reduced,
4th, the direct-connected databases of javascript, faster procedure performs speed, improving performance.
5th, the direct-connected databases of javascript, accelerate project development speed, save for more than 50% project development time.
Additionally, as shown in figure 4, present pre-ferred embodiments propose a kind of data access system, including front end and database,
The front end and database are connected with rear end communication;Wherein:
The front end, the access request for accessing database store process is sent for rear end, and the access request is at least
The parameter of address, database name, the name of storing process and the storing process including the database, will by the rear end
The access request is distributed to the database;
The database, for receiving the access request that the rear end sends, performs corresponding according to the access request
Storing process, and implementing result is returned into the front end by the rear end;
The front end, after being additionally operable to receive the implementing result that the rear end returns, it is right to be performed according to the implementing result
The javascript functions answered reconstruct front end page and show.
Further, the database, is additionally operable to the storing process that form and operation form are set up in database.
The rear end, is additionally operable to be split out from the access request of the front end transmission name and the institute of the storing process
The parameter of storing process is stated, the parameter of the name of the storing process and the storing process is sent to the database.
The rear end, is additionally operable to for the data of the implementing result to be converted to json data and returns to the front end;
The front end, after being additionally operable to the json data that the front end receiver is returned to the rear end, using Javascript,
Html or css reconstruct front end pages simultaneously show.
The access request is asked for Ajax;The access request includes:It is rear end address, corresponding database address, right
Database, parameter array and the database answered have performed front end call back function after storing process, wherein:The parameter array bag
Include the parameter of database address, database name, the name of the storing process and storing process.
The general principle of data access is realized in interaction between front end, rear end and database in the present invention program, be refer to
Embodiment is stated, be will not be repeated here.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of data access method, it is characterised in that comprise the following steps:
End system sends the http access requests for accessing database store process to front end page backward, and the access request is at least wrapped
The parameter of address, database name, the name of storing process and the storing process of the database is included, by the rear end by institute
State access request and be distributed to the database;
The database receives the access request that the rear end sends, and corresponding storing process is performed according to the access request,
And implementing result is returned into the front end by the rear end;
After the implementing result that the front end receiver is returned to the rear end, performed according to the implementing result corresponding
Javascript functions reconstruct front end page and show.
2. data access method according to claim 1, it is characterised in that end system sends and visits the front end page backward
Also include before the step of asking the http access requests of database store process:
The storing process of form and operation form is set up in database.
3. data access method according to claim 1, it is characterised in that be sent to for the access request by the rear end
The step of database, includes:
The name and the storing process of the storing process are split out in the access request that the rear end is transmitted from the front end
Parameter, the parameter of the name of the storing process and the storing process is distributed to the database.
4. data access method according to claim 1, it is characterised in that the rear end returns to the implementing result
The step of front end, includes:
The data of the implementing result are converted to json data and return to the front end by the rear end;
After the implementing result that the front end receiver is returned to the rear end, performed according to the implementing result corresponding
Javascript functions reconstruct front end page and include the step of display:
After the json data that the front end receiver is returned to the rear end, end page before being reconstructed using Javascript, html or css
Face simultaneously shows.
5. the data access method according to any one of claim 1-4, it is characterised in that the access request is Ajax
Request;The access request includes:Rear end address, corresponding database address, corresponding database, parameter array and data
Storehouse has performed front end call back function after storing process, wherein:The parameter array includes database address, database name, described
The name of storing process and the parameter of storing process.
6. a kind of data access system, it is characterised in that including front end and database, the front end and database are logical with rear end
News connection;Wherein:
The front end, the access request for accessing database store process is sent for rear end, and the access request at least includes
The parameter of the address of the database, database name, the name of storing process and the storing process, will be described by the rear end
Access request is distributed to the database;
The database, for receiving the access request that the rear end sends, corresponding storage is performed according to the access request
Process, and implementing result is returned into the front end by the rear end;
The front end, after being additionally operable to receive the implementing result that the rear end returns, performs corresponding according to the implementing result
Javascript functions reconstruct front end page and show.
7. data access system according to claim 6, it is characterised in that
The database, is additionally operable to the storing process that form and operation form are set up in database.
8. data access system according to claim 6, it is characterised in that
The rear end, is additionally operable to split out the name of the storing process from the access request of front end transmission and described deposits
The parameter of storage process, the database is sent to by the parameter of the name of the storing process and the storing process.
9. data access system according to claim 6, it is characterised in that
The rear end, is additionally operable to for the data of the implementing result to be converted to json data and returns to the front end;
The front end, after being additionally operable to the json data that the front end receiver is returned to the rear end, uses Javascript, html
Or css reconstructs front end page and shows.
10. the data access system according to any one of claim 6-9, it is characterised in that
The access request is asked for Ajax;The access request includes:It is rear end address, corresponding database address, corresponding
Database, parameter array and database have performed front end call back function after storing process, wherein:The parameter array includes number
According to the parameter of storehouse address, database name, the name of the storing process and storing process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710034607.5A CN106777352A (en) | 2017-01-18 | 2017-01-18 | Data access method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710034607.5A CN106777352A (en) | 2017-01-18 | 2017-01-18 | Data access method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106777352A true CN106777352A (en) | 2017-05-31 |
Family
ID=58946168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710034607.5A Pending CN106777352A (en) | 2017-01-18 | 2017-01-18 | Data access method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106777352A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107525955A (en) * | 2017-07-07 | 2017-12-29 | 珠海格力电器股份有限公司 | Ammeter data processing method and device |
CN111061469A (en) * | 2019-11-06 | 2020-04-24 | 贝壳技术有限公司 | WEB front-end source code generation method and device, storage medium and processor |
CN111125212A (en) * | 2019-11-29 | 2020-05-08 | 福建亿榕信息技术有限公司 | Strong isolation environment data real-time ferrying method and system |
CN111666426A (en) * | 2020-06-10 | 2020-09-15 | 北京海致星图科技有限公司 | Method, system and equipment for acquiring knowledge graph multi-scene graph data |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1804840A (en) * | 2005-01-12 | 2006-07-19 | 微软公司 | Data access layer class generator |
CN103455335A (en) * | 2013-09-12 | 2013-12-18 | 苏州灵巴巴网络科技有限公司 | Multilevel classification Web implementation method |
CN103577408A (en) * | 2012-07-19 | 2014-02-12 | 中兴通讯股份有限公司 | Database access method and device |
CN103716356A (en) * | 2012-10-09 | 2014-04-09 | 三亚中兴软件有限责任公司 | Storage process operation method, device and system based on Web |
CN103902677A (en) * | 2014-03-21 | 2014-07-02 | 西安理工大学 | Cross-platform database access method |
CN104239308A (en) * | 2013-06-08 | 2014-12-24 | 北京齐尔布莱特科技有限公司 | Access, integrating and optimizing method for page advertising requests |
CN104317925A (en) * | 2014-10-31 | 2015-01-28 | 北京思特奇信息技术股份有限公司 | Method and system for efficient front-end development and display |
CN104391892A (en) * | 2014-11-11 | 2015-03-04 | 成都锐理开创信息技术有限公司 | Real estate information access system based on metadata driving |
CN106201461A (en) * | 2016-06-27 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | Generation method, system and the background server at a kind of interface |
CN106227763A (en) * | 2016-07-13 | 2016-12-14 | 珠海市魅族科技有限公司 | The method and device that a kind of webpage loads |
-
2017
- 2017-01-18 CN CN201710034607.5A patent/CN106777352A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1804840A (en) * | 2005-01-12 | 2006-07-19 | 微软公司 | Data access layer class generator |
CN103577408A (en) * | 2012-07-19 | 2014-02-12 | 中兴通讯股份有限公司 | Database access method and device |
CN103716356A (en) * | 2012-10-09 | 2014-04-09 | 三亚中兴软件有限责任公司 | Storage process operation method, device and system based on Web |
CN104239308A (en) * | 2013-06-08 | 2014-12-24 | 北京齐尔布莱特科技有限公司 | Access, integrating and optimizing method for page advertising requests |
CN103455335A (en) * | 2013-09-12 | 2013-12-18 | 苏州灵巴巴网络科技有限公司 | Multilevel classification Web implementation method |
CN103902677A (en) * | 2014-03-21 | 2014-07-02 | 西安理工大学 | Cross-platform database access method |
CN104317925A (en) * | 2014-10-31 | 2015-01-28 | 北京思特奇信息技术股份有限公司 | Method and system for efficient front-end development and display |
CN104391892A (en) * | 2014-11-11 | 2015-03-04 | 成都锐理开创信息技术有限公司 | Real estate information access system based on metadata driving |
CN106201461A (en) * | 2016-06-27 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | Generation method, system and the background server at a kind of interface |
CN106227763A (en) * | 2016-07-13 | 2016-12-14 | 珠海市魅族科技有限公司 | The method and device that a kind of webpage loads |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107525955A (en) * | 2017-07-07 | 2017-12-29 | 珠海格力电器股份有限公司 | Ammeter data processing method and device |
CN111061469A (en) * | 2019-11-06 | 2020-04-24 | 贝壳技术有限公司 | WEB front-end source code generation method and device, storage medium and processor |
CN111061469B (en) * | 2019-11-06 | 2023-09-15 | 贝壳技术有限公司 | WEB front-end source code generation method and device, storage medium and processor |
CN111125212A (en) * | 2019-11-29 | 2020-05-08 | 福建亿榕信息技术有限公司 | Strong isolation environment data real-time ferrying method and system |
CN111666426A (en) * | 2020-06-10 | 2020-09-15 | 北京海致星图科技有限公司 | Method, system and equipment for acquiring knowledge graph multi-scene graph data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106777352A (en) | Data access method and system | |
CN100476819C (en) | Data mining system based on Web and control method thereof | |
CN104408222B (en) | Reconfiguration method of real-time distributed simulation platform | |
CN104821954B (en) | A kind of cross-platform remote procedure calling (PRC) method | |
CN103176804B (en) | A kind of user interface implementation method | |
CN101504618B (en) | Multi-core processor oriented real-time thread migration method | |
Zhang et al. | Research on lightweight MVC framework based on spring MVC and mybatis | |
CN102184101B (en) | Software application frame and development system thereof for smartphones | |
WO2019047441A1 (en) | Communication optimization method and system | |
CN109739505B (en) | A kind for the treatment of method and apparatus of user interface | |
CN107092473A (en) | Desktop application development approach and equipment | |
CN206479986U (en) | Data access system | |
CN104865904B (en) | A kind of unperturbed configuration method towards multicycle processor active task | |
CN106776455A (en) | A kind of method and device of many GPU communications of unit | |
CN106886530A (en) | A kind of dynamic data distinguishes editing and updating method and system | |
CN102779034A (en) | Client side of railway ticketing system and implementation method of client side | |
CN107092514A (en) | A kind of content of pages methods of exhibiting and device | |
CN103257855B (en) | A kind of disposal system based on MVC, disposal route and the application in beauty treatment software | |
CN104618471A (en) | Application state transition method applied to different terminals | |
CN105242913A (en) | YYUC-PHP (Professional Hypertext Preprocessor) frame | |
CN204406148U (en) | Generate the system of numerically-controlled machine machining control data | |
CN103399746B (en) | Information management system convenient to develop secondarily and development method | |
CN106709861B (en) | Stainer driving static reconstruction method | |
CN103135992A (en) | Method of fast designing website mall according to individual characteristics requires of customer | |
CN107817972A (en) | Cache code process method, apparatus, storage medium and electronic equipment |
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 |
Application publication date: 20170531 |
|
RJ01 | Rejection of invention patent application after publication |