no-mistakes-postgres-engine 0.109.129

PostgreSQL embedded SQL extraction, schema catalog, and replay-safety analysis for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{EmbeddedSqlSourcePosition, Positions};

pub(in crate::embedded) fn piece(
    raw: &str,
    decoded: &str,
    line: u32,
    raw_mode: bool,
) -> Vec<EmbeddedSqlSourcePosition> {
    let mut positions = Positions {
        origin: line,
        ..Positions::default()
    };
    positions.append(raw, decoded, line, raw_mode);
    positions.positions
}