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
// Copyright (C) 2026 Gabriel Shea
// Licensed under either of the Apache License, Version 2.0 or the MIT
// license, at your option.
//! **How loud a message a procedure body writes is.**
//!
//! A generated procedure says things while it runs — that it started, how many
//! rows it saw, that something was off but not fatal. The message is SQL the
//! dialect is handed; the severity is not, because every engine names its
//! levels differently and some have only one. This is the vocabulary that
//! travels with the message.
/// The severity of a message a procedure body writes.
///
/// It is `#[non_exhaustive]`: a dialect matching on it states a fallback rather
/// than assuming the list it compiled against is the list that ships. An engine
/// with one logging statement and no levels — Oracle's `DBMS_OUTPUT` is the
/// worked case — ignores this and spells the message.