Skip to content

CloudKitSchema can't be written back to .ckdb #494

Open

Description

@leogdion

CloudKitSchema(parsing:) reads a .ckdb export (#135 Phase 1), but there's no way to go the other way, so a tool can't show or save a schema in the format cktool uses.

Proposal: add a writer that round-trips with the parser, quoting identifiers that are reserved words or need it; keep each record type's and field's source line; make the schema model types Codable (and mutable where it helps editing); expose the implicit ___ system fields; and add canBeEncrypted per primitive type. Align parser strictness first (trailing commas, a missing final ;). Builds on #135.

Found while building brightdigit/Mistico (vendored at Packages/MistKit, branch mistico from v1.0.0-beta.6). Tracked in brightdigit/Mistico#119.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions