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
use *;
/// Names the public RPC contract, so a caller can assert which revision of it a
/// database implements.
///
/// The functions in this schema are a public interface, not an implementation
/// detail of `tango-api`: a database plus the harvester is a supported install,
/// and someone building their own HTTP layer around `search_transcripts` is the
/// case the split into functions was for. Nothing in the interface told them
/// which revision they had.
///
/// `require_all` is the argument for versioning by hand rather than inferring it
/// from the migration list. 0023 redefined it - every term in one cue became
/// every term anywhere in the video - and moved the `context_matches` window
/// from +-30 s to +-300 s. A caller's compiled-in signature was unaffected and
/// their results changed anyway. `seaql_migrations` records that something was
/// applied; it cannot say whether it was allowed to change what a caller sees.
///
/// So the number is a promise maintained by hand: a migration that changes a
/// public signature, its semantics, or a documented result column updates this
/// function in the same migration. `docs/rpc.md` carries the same rule and the
/// table of what each version means.
;
const UP: &str = include_str!;