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.

440 B
Raw Blame
import type { OpColumnKind } from '@core/database-sql/generated/types';
import type { DatabaseColumnKind } from '../../database/core/column-schema';

/** The op's spelling of a kind; a relation's rows live in this database. */
export function opColumnKind(
  databaseId: string,
  kind: DatabaseColumnKind
): OpColumnKind {
  return kind.type === 'relation'
    ? { type: 'relation', database: databaseId, table: kind.table }
    : kind;
}