1. A method comprising:
receiving a database query language statement to initiate a read-only transaction within a database management system and an indicator specifying that uncommitted data item values modified in other transactions are to be read within the read-only transaction;
initiating the read-only transaction within the database management system; and
taking a data snapshot of a most recently modified data item values of data items specified in the query language statement for use within the read-only transaction and holding the data snapshot in memory.
2. The method of claim 1, wherein modified, uncommitted data items within the database are identified by the database management system through a data versioning mechanism.
3. The method of claim 2, wherein the data versioning mechanism maintains at least two snapshots of a data items values that are the subject of an updatable transaction.
4. The method of claim 1, wherein the database management system maintains at least one global snapshot of data item values.
5. The method of claim 1, wherein the database management system generates and maintains a data snapshot of data items specified in query language statements of each active transaction within the database management system.
6. The method of claim 1, wherein the indicator specifying that uncommitted data item values modified in other transactions are to be read overrides a default setting specifying that only committed data item values are to be read.
7. A non-transitory computer-readable medium with instructions thereon which when processed by a suitably configured computing device causes the computing device to:
receive a database query language statement to initiate a read-only transaction within a database management system and an indicator specifying to use either committed or uncommitted data item values of data items specified in the query language statement;
initiate the read-only transaction within the database management system;
when the query language statement specifies that uncommitted data item values modified in other transactions are to be read within the read-only transaction, take a data snapshot of a most recently modified data item values specified in the query language statement for use within the read-only transaction and hold the data snapshot in memory;
when the query language statement specifies that only committed data item values are to be read within the read-only transaction, take a data snapshot of committed values of data items specified in the query language statement for use within the read-only transaction and hold the data snapshot in memory.
8. The non-transitory computer-readable medium of claim 7, wherein modified, uncommitted data items within the database are identified by the database management system through a data versioning mechanism.
9. The non-transitory computer-readable medium of claim 8, wherein the data versioning mechanism maintains at least two snapshots of a data items values that are the subject of an updatable transaction.
10. The non-transitory computer-readable medium of claim 7, wherein the database management system maintains at least one global snapshot of data item values.
11. The non-transitory computer-readable medium of claim 7, wherein the database management system generates and maintains a data snapshot of data items specified in query language statements of each active transaction within the database management system.
12. The non-transitory computer-readable medium of claim 7, wherein the indicator specifying that uncommitted data item values modified in other transactions are to be read overrides a default setting specifying that only committed data item values are to be read.
13. A system comprising:
one or more data storage devices;
a database management system to manage data stored in at least one of the one or more data storage devices, the database management system operable to:
receive a database query language statement to initiate a read-only transaction within the database management system and an indicator specifying that uncommitted data item values modified in other transactions are to be read within the read-only transaction;
initiate the read-only transaction within the database management system; and
take a data snapshot of a most recently modified data item values of data items specified in the query language statement for use within the read-only transaction and holding the data snapshot in memory.
14. The system of claim 13, wherein modified, uncommitted data items within the database are identified by the database management system through a data versioning mechanism.
15. The system of claim 14, wherein the data versioning mechanism maintains at least two snapshots of a data items values that are the subject of an updatable transaction.
16. The system of claim 13, wherein the database management system maintains at least one global snapshot of data item values.
17. The system of claim 13, wherein the database management system generates and maintains a data snapshot of data items specified in query language statements of each active transaction within the database management system.
18. The system of claim 13, wherein the indicator specifying that uncommitted data item values modified in other transactions are to be read overrides a default setting specifying that only committed data item values are to be read.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. An electronic device comprising:
a main body defining a receiving space,
a camera module comprising an outer frame, two first shafts, an inner frame, two second shafts, and an image capturing unit, the outer frame being received in the receiving space and rotatably suspended by the two first shafts;
wherein the inner frame is received within the outer frame and rotatably suspended by the two second shafts, the first shafts are substantially perpendicular to the second shafts, the image capturing unit is received in the inner frame.
2. The electronic device according to claim 1, wherein the receiving space is formed by two opposite side surfaces of the main body and a bottom surface of the main body connecting the two side surfaces, the two side surfaces define two first shaft holes aligned with each other to receive the two first shafts, respectively.
3. The electronic device according to claim 2, wherein the outer frame and the first shafts are hollow and define an interior space to allow wires of the image capturing unit running therethrough.
4. The electronic device according to claim 3, wherein the outer frame is received in the receiving space with a first clearance formed between the outer frame and the receiving space, and the first shafts rotatably fit into the first shaft holes respectively, thereby the outer frame is received in the receiving space and rotatable about the first shafts.
5. The electronic device according to claim 3, wherein the second shafts are hollow and the interior thereof communicate with the interior space, thereby the wires of the image capturing unit received within the interior space can run out through the second shafts.
6. The electronic device according to claim 3, wherein the inner frame is received in the outer frame with a second clearance formed between the outer frame and the inner frame, and the second shafts rotatably fit into the second shaft holes respectively, thereby the inner frame is received in the outer frame and rotatable about the second shafts.
7. The electronic device according to claim 3, wherein the inner frame defines a first through hole and a second through hole in an upper plate, the first through hole and the second through hole are coaxial and communicate with each other, the first through hole is adjacent to the interior space and communicates with the interior space, the diameter of the first through hole is less than that of the second through hole.
8. The electronic device according to claim 7, wherein the image capturing unit comprises a lens, a lens holder, an image sensor, and a printed circuit board (PCB), the lens is received in the first through hole and coupled to the lens holder, the image sensor is received with lens holder and mechanically and electrically disposed on the PCB.
9. The electronic device according to claim 8, wherein the image capturing unit further comprises a cover for sealing the second through hole to protect the lens from damage.
10. The electronic device according to claim 8, wherein the wires of the image capturing unit extend from the PCB and go out through the interior space of the inner frame, to the interior of the second shafts, to the interior space of the outer frame, to the interior of the first shafts, and finally to the outside of the camera module to the interior of the electronic device.
11. The electronic device according to claim 1, wherein the outer frame is substantially a hollow rectangular tube.
12. The electronic device according to claim 1, wherein the receiving space is recessed from an upper portion of the electronic device.
13. The electronic device according to claim 1, wherein the inner frame is substantially a hollow cube.