surrealdb-expr 4.0.0

A scalable, distributed, collaborative, document-graph database, for the realtime web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use surrealdb_types::{SqlFormat, ToSql};

#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Hash)]
pub struct Explain(pub bool);

impl ToSql for Explain {
	fn fmt_sql(&self, f: &mut String, _fmt: SqlFormat) {
		f.push_str("EXPLAIN");
		if self.0 {
			f.push_str(" FULL");
		}
	}
}