-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocuments.schema.yaml
57 lines (57 loc) · 1.92 KB
/
documents.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This schema was produced via `flowctl discover --image ghcr.io/estuary/source-postgres:dev`
allOf:
- properties:
_meta:
properties:
before:
$ref: "#PublicDocuments"
description: Record state immediately before this change was applied.
op:
description: "Change operation type: 'c' Create/Insert, 'u' Update, 'd' Delete."
enum: [c, d, u]
source:
additionalProperties: false
properties:
loc:
description: Location of this WAL event as [last Commit.EndLSN; event LSN; current Begin.FinalLSN]. See https://www.postgresql.org/docs/current/protocol-logicalrep-message-formats.html
items:
type: integer
maxItems: 3
minItems: 3
type: array
schema:
description: Database schema (namespace) of the event.
type: string
snapshot:
description: Snapshot is true if the record was produced from an initial table backfill and unset if produced from the replication log.
type: boolean
table:
description: Database table of the event.
type: string
ts_ms:
description: Unix timestamp (in millis) at which this event was recorded by the database.
type: integer
required:
- schema
- table
type: object
required:
- op
- source
type: object
required:
- _meta
- $ref: "#PublicDocuments"
definitions:
PublicDocuments:
$anchor: PublicDocuments
properties:
body:
description: Text of the document, to be split and counted.
type: string
id:
description: ID of the document.
type: integer
required:
- id
type: object