[Tdbc] Add Tizen.Data.Tdbc (#5145)
[platform/core/csapi/tizenfx.git] / src / Tizen.Data.Tdbc / doc / api / Tizen.Data.Tdbc.md
1 ---
2 uid: Tizen.Data.Tdbc
3 summary: TDBC provides a uniform interface for accessing various database systems in Tizen applications.
4 remarks: *content
5 ---
6 ## Overview
7 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.
8
9 ## Connecting to database
10 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.
11
12 Here's an example of how to connect to Sqlite database:
13 ```cs
14 using Tizen.Data.Tdbc;
15 // ...
16
17 DriverManager.RegisterDriver("Tizen.Data.Tdbc.Driver.Sqlite");
18 var conn = DriverManager.GetConnection(new Uri("tdbc://localhost/sqlite_test.db?mode=rwc"));
19 ```