Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.3 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * document_storage_service
 * OpenAPI spec version: 0.1.0
 */
import type { RowId } from './rowId';
import type { SqlOutcomeNewVersions } from './sqlOutcomeNewVersions';
import type { SqlOutcomeReadVersions } from './sqlOutcomeReadVersions';
import type { SqlOutcomeResult } from './sqlOutcomeResult';
import type { SqlOutcomeTableDatabases } from './sqlOutcomeTableDatabases';
import type { SqlStatement } from './sqlStatement';

/**
 * The answer to one statement.
 */
export interface SqlOutcome {
  /**
   * How many rows a write changed.
   * @minimum 0
   */
  changesApplied: number;
  /** The rows an `INSERT` created, in statement order. */
  insertedRowIds: RowId[];
  /** The new version of every table written. */
  newVersions: SqlOutcomeNewVersions;
  /** The version of every table read, for a follow-up write to guard on. */
  readVersions: SqlOutcomeReadVersions;
  result?: SqlOutcomeResult;
  /** What kind of statement ran, and what it wrote. */
  statement: SqlStatement;
  /** Owning database of each visible table referenced by this outcome. */
  tableDatabases: SqlOutcomeTableDatabases;
  /** Every table the statement read, when any read hit the engine's row
cap: the engine reports the cap per statement, so aggregates over any
of them may be partial. */
  truncatedTables: string[];
}