Query


Object Hierarchy:

Object hierarchy for Query

Description:

public class Query<T>

A generic SQL query builder for GObject-based types.

This class provides type-safe CRUD operations for GObject instances, automatically mapping object properties to database columns. It supports INSERT, UPDATE, SELECT, and DELETE operations with automatic type conversion between GObject property types and SQLite column types.

Supported GObject property types: - boolean (maps to INTEGER 0/1) - int (maps to INTEGER) - int64 (maps to INT64) - string (maps to TEXT) - enum (maps to INTEGER)

**Important:** SQ.Query only works with GObject properties. When deserializing from the database (SELECT operations), all properties found in the result set will be set on the object. If a property is read-only (`get;` only), GObject will throw an error when attempting to set it. Therefore, properties that appear in SELECT queries must be settable (`get; set;`).

Parameters:

T

The GObject type to work with


Namespace: SQ
Package: ollmchat

Content:

Creation methods:

Methods:

Fields: