sea-query 1.0.1

🔱 A dynamic query builder for MySQL, Postgres and SQLite
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::SqlWriter;

#[derive(Default, Debug, Clone, PartialEq)]
pub(crate) struct SqliteExplainOptions {
    pub(crate) query_plan: bool,
}

impl SqliteExplainOptions {
    pub(crate) fn write_to(&self, sql: &mut impl SqlWriter) {
        if self.query_plan {
            sql.write_str(" QUERY PLAN").unwrap();
        }
    }
}