Skip to Content
fusion-orm
API Reference

API Reference

Every exported chainable, finisher, config field, clause type, error sentinel, and schema symbol — extracted verbatim from source.

This reference documents the public surface of github.com/kiplagatcollins/fusion-orm (Go 1.27.4). Every signature was extracted from the repository source — the <!-- src: file:line --> comments above each snippet point at the exact code each signature comes from, and the doc comments are trimmed (never paraphrased into new semantics) from the source.

What is covered

  • Chainable methods — Model, Where, Order, Preload, Joins, and the session setup methods (Session, WithContext, Debug, QueryHook). Each returns a derivative *DB; nothing mutates the receiver.
  • Finisher methods — Create, Find, First, Updates, Delete, and every other method that executes. All report through Error + RowsAffected.
  • Config reference — every field of fusion.Config and fusion.Session, with defaults and semantics.
  • Clause types — the clause.Interface/Builder contracts, every clause struct with its Name() string, the 16-slot canonical build order, and golden renderings.
  • Error sentinels — every errors.Is-compatible sentinel across fusion, dialect, migrator, schema, callbacks, and logger, plus AddError semantics.
  • Schema & naming symbols — the metadata layer plugins and advanced users touch: schema.Table, schema.Field, relations, namers, appenders, scanners, serializers.

Reading conventions

Signatures are quoted exactly as written in source. Where a method's doc comment carries behavior worth copying, the trimmed comment text follows the signature. Examples are illustrative — the signature block above each one is the contract.

Scope

This reference covers SQLite and PostgreSQL only — the two dialects that ship in-tree. Sentinel errors and clause names are stable; internal packages are not documented because there are none — everything below lives in exported packages.

Where next

On this page