Namespace Tizen.Data.Tdbc
TDBC provides a uniform interface for accessing various database systems in Tizen applications.
Overview
Tizen.Data.Tdbc provides developers with access to the Tizen Database Connectivity (TDBC) layer. The TDBC layer provides a uniform interface for accessing various database systems in Tizen. With Tizen.Data.Tdbc, developers can easily connect to and perform operations on different database systems without having to learn each system's specific API.
Connecting to database
To use a variant database driver with Tdbc, you'll need to register the driver before using the Tizen.Data.Tdbc.DriverManager.RegisterDriver() method. This method registers a driver with TDBC, making it available for use in connecting to specific databases.
Here's an example of how to connect to Sqlite database:
using Tizen.Data.Tdbc;
// ...
DriverManager.RegisterDriver("Tizen.Data.Tdbc.Driver.Sqlite");
var conn = DriverManager.GetConnection(new Uri("tdbc://localhost/sqlite_test.db?mode=rwc"));
Classes
ConnectionUriBuilder
Provides a simple way to create and manage the contents of connection uri used by the Connection class.
DriverManager
DriverManager loads TDBC drivers and gets connections to databases.
RecordChangedEventArgs
RecordChangedEventArgs class. This class is an event arguments of the RecordChanged events.
Sql
Represents a SQL query string.
TransactionGuard
This class helps the operation of the statement in a transacted way.
Interfaces
IConnection
TDBC Interface for connecting with a database.
IRecord
Record class. This class provides the result of query.
IResultSet
TDBC interface for a collection of IRecord items.
IStatement
TDBC interface for representing statement.
Enums
OperationType
Enumeration for the database operation type.