Content deleted Content added
m Bot: link syntax and minor changes |
Wikipedia is not a reliable source, refine ref details |
||
Line 1:
{{
A '''database abstraction layer''' ('''DBAL'''<ref>{{cite book|author1=Tim Ambler|author2=Nicholas Cloud|title=JavaScript Frameworks for Modern Web Dev|url=https://books.google.
== Database levels of abstraction ==
Line 10:
Implementation of data types and operations are the most database specific at this level.
=== Conceptual or logical level (middle or next highest level) ===
The conceptual level consolidates external concepts and instructions into an intermediate data structure that can be devolved into physical instructions. This layer is the most complex as it spans the external and physical levels. Additionally it needs to span all the supported databases and their quirks, APIs, and problems.
This level is aware of the differences between the databases and able to construct an execution path of operations in all cases. However the conceptual layer defers to the physical layer for the actual implementation of each individual operation.
=== External or view level ===
The external level is exposed to users and developers and supplies a consistent pattern for performing database operations.
Line 28 ⟶ 30:
An example of a database abstraction layer on the language level would be [[ODBC]]. ODBC is a platform-independent implementation of a database abstraction layer. The user installs specific driver-software, through which ODBC can communicate with a database or set of databases. The user then has the ability to have programs communicate with ODBC, which then relays the results back and forth between the user programs and the database. The downside of this abstraction level is the increased overhead to transform statements into constructs understood by the target database.
Alternatively, there are thin wrappers, often described as ''lightweight'' abstraction layers, such as OpenDBX<ref>{{cite web |url=https://www.linuxnetworks.de/doc/index.php?title=OpenDBX |title=OpenDBX |author==<!--Not stated--> |date=24 June 2012 |website=linuxnetworks.de |access-date=26 July 2018}}</ref>
== Arguments for ==
Line 45 ⟶ 47:
=== Added Database Features ===
Depending on the database and the DAL, it may be possible for the DAL to add features to the database. A DAL may use database programming facilities or other methods to create standard but unsupported functionality, or completely new functionality. For instance the DBvolution DAL implements the standard deviation function for several databases that do not support it.
== Arguments against ==
|