1. Technical Field
Embodiments of the present disclosure relate to software program developments, and particularly to, a database server and a program package integrating method.
2. Description of Related Art
During development of a software project, a plurality of software program modules may be produced. Each module may include a plurality of procedural elements and/or functions. These procedural elements and functions may be located together in the same directory. Maintaining these procedural elements and functions is inconvenient. In order to modularize software programs, the procedural language/structured query language (PL/SQL®) defines a “package” to manage the procedures and functions. When a large software project is developed by multiple developers, a package is created by each developer to cooperatively develop programs of the software project. When the development of the software project is accomplished, the package created by each developer needs to be integrated in an integrating package.
If the packages of two or more developers are integrated in the integrating package at the same time, programs of the other package may overwrite some of the programs of one package. Therefore, there is room for improvement in the art.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In this embodiment, the program package refers to an ORACLE® package. The database server 1 can be a structured query language (SQL) server.
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage devices. Some non-limiting examples of non-transitory computer-readable medium include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In step S1, the creation module 101 creates an integrating package in the storage 11 of the database server 1, to store the program package created by each client device 2. In this embodiment, the integrating package can be a directory having a certain storage space created in the storage 11.
In step S2, the storage region allocation module 102 allocates a storage region for each of two or more client devices 2 in the storage space of the integrating package when the two or more client devices 2 simultaneously access the integrating package.
In step S3, when the two or more client devices 2 write the program package to the integrating package, the package writing module 103 writes the program package of each of the two or more client devices 2 into a corresponding storage region which is allocated for each of the two or more client devices 2.
In one embodiment, the storage region allocated for each client device 2 is invisible to the user of the client device 2. In other embodiments, the storage region allocated for each client device 2 is visible to the user of the client device 2. If the storage region is visible to the user, the user using a corresponding client device 2 can operate in the storage region, and the program package of the corresponding client device 2 can be manually written directly into the storage region. If the storage region is invisible to the user, the user can only operate the integrating package directly, and the program package of different client devices 2 is automatically written into a corresponding storage region by the package writing module 103, thereby avoiding programs from different program package from being overwritten with each other.
In step S4, when each of the client devices 2 exits access to the integrating package, the package integrating module 104 integrates the program package of each storage region, such as storing the program package of each storage region in the storage address of the integrating package in sequence. The remaining memory space of each storage region is released to the storage space of the package integrating module 104.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013101271542 | Apr 2013 | CN | national |