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
//! Row-to-JSON conversion and query-result traits.
use Value;
/// Converts a single database row into a JSON object.
/// Extracts the affected row count from a backend query result.
///
/// sqlx's `Database::QueryResult` associated type exposes
/// `rows_affected()` as an inherent method on each concrete backend
/// type. This trait provides a single generic bound so the blanket
/// `Connection` impl can call it without knowing the concrete type.