Search Results for

    Show / Hide Table of Contents

    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"));
    

    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.

    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX