Passa al contenuto principale

Class Engine

Namespace: TecnoPack.SQLite
Assembly: CO0002_Templ_FlowpackHMI_V00_26_M.dll

Provides methods for initializing and managing the SQLite engine with platform-specific native libraries.

public static class Engine

Inheritance

object ← Engine

Methods

CreateConnection(string)

Creates a new independent (scoped) connection manager.

public static SQLiteConnectionManager CreateConnection(string key)

Parameters

key string

Returns

SQLiteConnectionManager

GetSharedConnection(string)

Gets a shared connection manager for a database.

public static SQLiteConnectionManager GetSharedConnection(string key)

Parameters

key string

Returns

SQLiteConnectionManager

InitializeEngine()

Initializes the SQLite engine (native libraries). Call once at application startup.

public static void InitializeEngine()

RegisterDatabase(string, string, string)

Registers a SQLite database file.

public static void RegisterDatabase(string key, string databaseName, string schemaName = null)

Parameters

key string

databaseName string

schemaName string

ShutdownAllAsync()

Shutdown all database connections.

public static ValueTask ShutdownAllAsync()

Returns

ValueTask

ShutdownDatabaseAsync(string)

Shutdown a specific database connection.

public static ValueTask ShutdownDatabaseAsync(string key)

Parameters

key string

Returns

ValueTask

  • Methods
    • CreateConnection(string)
    • GetSharedConnection(string)
    • InitializeEngine()
    • RegisterDatabase(string, string, string)
    • ShutdownAllAsync()
    • ShutdownDatabaseAsync(string)