The D DBI project
- Interface for registering a database provider. This will allow you to only
link the database drivers that you will use.
- static void
- Used by each database provider to 'register' itself. This registration is
usually done via a static constructor, so all you need to do is import the
database that you want to use.
||Registerable instance that will create Database instances when
asked via getDatabaseForURL.|
- static Database
- Given a database URL, instantiate and return a Database instance.
A database URL looks like:
Where dbprefix is the database provider, such as mysql or oracle.
params is currently implementation defined.
||The URL of the database you wish to connect to.|
A fully instantiated Database instance. TODO: Should it call connect()?