Skip to content

repo schema

Usage: libfossil repo schema <command>

Synced table schema operations

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

Commands:
  repo schema add --columns=STRING <name> [flags]
    Register a new synced table

  repo schema list
    List registered synced tables

  repo schema show <name>
    Show table schema details

  repo schema remove <name>
    Remove a synced table registration

repo schema add

Usage: libfossil repo schema add --columns=STRING <name> [flags]

Register a new synced table

Arguments:
  <name>    Table name (without x_ prefix)

Flags:
  -h, --help                     Show context-sensitive help.
  -R, --repo=STRING              Path to repository file
  -v, --verbose                  Verbose output

      --columns=STRING           Column defs: name:type[:pk],... (e.g.
                                 peer_id:text:pk,addr:text)
      --conflict="mtime-wins"    Conflict strategy

repo schema list

Usage: libfossil repo schema list

List registered synced tables

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

repo schema show

Usage: libfossil repo schema show <name>

Show table schema details

Arguments:
  <name>    Table name (without x_ prefix)

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

repo schema remove

Usage: libfossil repo schema remove <name>

Remove a synced table registration

Arguments:
  <name>    Table name (without x_ prefix)

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output