Table of Contents

Method CreateAsync

Namespace
Qavren.Edge.Sqlite.Fts
Assembly
Qavren.Edge.Sqlite.dll

CreateAsync(SqliteConnection, string, IReadOnlyList<string>, FtsTokenizer, string?, CancellationToken)

Builds the table's DDL with BuildCreateSql(string, IReadOnlyList<string>, FtsTokenizer, string?) and executes it on connection.

public static Task CreateAsync(SqliteConnection connection, string name, IReadOnlyList<string> columns, FtsTokenizer tokenizer = FtsTokenizer.Unicode61, string? contentTable = null, CancellationToken cancellationToken = default)

Parameters

connection SqliteConnection

The open connection to create the table on.

name string

The table name.

columns IReadOnlyList<string>

The indexed column names; at least one is required.

tokenizer FtsTokenizer

The tokenizer to use.

contentTable string

The external-content table name, or null to omit content=.

cancellationToken CancellationToken

Cancels the command.

Returns

Task

Exceptions

ArgumentException

name is null, empty, or whitespace; or columns is empty.

ArgumentNullException

columns is null.

CreateAsync(SqliteConnection, string, IReadOnlyList<string>, FtsTokenizer, FtsTableOptions, CancellationToken)

public static Task CreateAsync(SqliteConnection connection, string name, IReadOnlyList<string> columns, FtsTokenizer tokenizer, FtsTableOptions options, CancellationToken cancellationToken = default)

Parameters

connection SqliteConnection
name string
columns IReadOnlyList<string>
tokenizer FtsTokenizer
options FtsTableOptions
cancellationToken CancellationToken

Returns

Task