Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2026 Changes in this version + type Dialect = togo.Dialect + func DialectFor(driver string) Dialect + type Query struct + func For[T any](db *sql.DB, d Dialect, table string) *Query[T] + func (q *Query[T]) Create(ctx context.Context, data map[string]any) (*T, error) + func (q *Query[T]) Delete(ctx context.Context) error + func (q *Query[T]) Find(ctx context.Context, id any) (*T, error) + func (q *Query[T]) First(ctx context.Context) (*T, error) + func (q *Query[T]) Get(ctx context.Context) ([]T, error) + func (q *Query[T]) Limit(n int) *Query[T] + func (q *Query[T]) Offset(n int) *Query[T] + func (q *Query[T]) Order(s string) *Query[T] + func (q *Query[T]) Update(ctx context.Context, data map[string]any) error + func (q *Query[T]) Where(col, op string, val any) *Query[T]