Class DriverManager
Definition
- Assembly:
- Tizen.Data.Tdbc.dll
DriverManager loads TDBC drivers and gets connections to databases.
public class DriverManager
- Inheritance
-
objectDriverManager
Methods
View SourceGetConnection(String)
Get connection of registered database and open the database.
Declaration
public static IConnection GetConnection(String connectionString)
Parameters
Type | Name | Description |
---|---|---|
String | connectionString | The string for connect and open database. |
Returns
Type | Description |
---|---|
IConnection | The connection object. |
Remarks
If the driver uses database at filesystem, such as media storage or external storage, you need to declare a proper privilege such as http://tizen.org/privileges/mediastorage or http://tizen.org/privileges/externalstorage.
GetConnection(Uri)
Get connection of registered database and open the database.
Declaration
public static IConnection GetConnection(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The uri represents database to connect. |
Returns
Type | Description |
---|---|
IConnection | The connection object. |
Remarks
If the driver uses database at filesystem, such as media storage or external storage, you need to declare a proper privilege such as http://tizen.org/privileges/mediastorage or http://tizen.org/privileges/externalstorage.
RegisterDriver(string)
Registers and loads the TDBC driver with the given driver name.
Declaration
public static void RegisterDriver(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of TDBC driver. |