Skip to content

PersistBackend

<!-- generated:meta -->

Grupinfra
Planeresource
Spec structPersistBackendSpec

<!-- /generated:meta -->

Kapan Memakai

kind: PersistBackend adalah implementasi seam penyimpanan — setara dengan Shell di sisi visual.

Kapan memakai PersistBackend:

  • Implementasi penyimpanan (JSONB on Postgres/SQLite)
  • Memenuhi kontrak 04-persist-backend.md (transaksi, natural key, outbox, index generation)

Kapan TIDAK pakai PersistBackend:

  • Koneksi database bernama → kind: Datastore
  • Menyusun data bisnis → kind: Entity

Sumber kontrak: docs/spec/backend/04-persist-backend.md.

Contoh Manifest

yaml
apiVersion: formspec.dev/v1
kind: PersistBackend
metadata:
  name: jsonb-persist
  module: formspec/rendering
spec:
  implements: formspec/storage.entity-persist
  trust_tier: official

Atribut

<!-- generated:attributes -->

AtributTipeWajibContohDeskripsi
implementsstringformspec/storage.entity-persist
trust_tierenum (official · verified · community)official

<!-- /generated:attributes -->

Gotchas

Standar terbuka (CC0) dengan implementasi referensi.