aboutsummaryrefslogtreecommitdiffstats
path: root/src/yaml
diff options
context:
space:
mode:
Diffstat (limited to 'src/yaml')
-rw-r--r--src/yaml/sql.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yaml/sql.rs b/src/yaml/sql.rs
index a9644eb..61c9d6c 100644
--- a/src/yaml/sql.rs
+++ b/src/yaml/sql.rs
@@ -3,12 +3,13 @@ use yaml_rust::yaml;
use std::borrow::Cow;
-/// TODO
+/// Wrap `yaml_rust::Yaml`, adding implementations for `rusqlite::ToSql` and
+/// `rusqlite::types::FromSql`.
#[derive(Debug)]
pub(crate) struct Yaml<'a>(pub Cow<'a, yaml::Yaml>);
impl<'a> Yaml<'a> {
- /// TODO
+ /// Extracts the wrapped `yaml_rust::Yaml`.
pub fn into_inner(self) -> yaml::Yaml {
self.0.into_owned()
}