PhoenixKit.Modules.Sync.TableSchema (phoenix_kit v1.7.71)

Copy Markdown View Source

Struct representing a database table's schema information.

Returned by SchemaInspector.fetch_table_schema/2 and consumed by DataImporter, DataExporter, sync LiveViews, and the wire protocol.

Fields

  • table - Table name
  • schema - PostgreSQL schema (e.g., "public")
  • columns - List of ColumnInfo structs
  • primary_key - List of primary key column names

Summary

Types

t()

@type t() :: %PhoenixKit.Modules.Sync.TableSchema{
  columns: [PhoenixKit.Modules.Sync.ColumnInfo.t()],
  primary_key: [String.t()],
  schema: String.t(),
  table: String.t()
}