aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-03-23 00:11:30 +0100
committerTeddy Wing2022-03-23 00:11:30 +0100
commit24445707342d22e4df5a1f6ec8aecc786244fbc4 (patch)
treed387bd5470e73b0d7096e3c55969772465215545
parent28fb8fd2df135d3234b1230acbf98a0a08b14110 (diff)
downloadyaqlite-24445707342d22e4df5a1f6ec8aecc786244fbc4.tar.bz2
select: Add function documentation
-rw-r--r--src/select.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/select.rs b/src/select.rs
index b5251ff..e058044 100644
--- a/src/select.rs
+++ b/src/select.rs
@@ -1,4 +1,4 @@
-/// TODO
+/// Select a record matching `record_id` from `dbconn` as YAML.
pub fn select<C>(
dbconn: &rusqlite::Connection,
table_name: &str,
@@ -16,7 +16,8 @@ where C: AsRef<str> + PartialEq<String>
)
}
-/// TODO
+/// Select a record matching `record_id` in the `primary_key_column` column from
+/// `dbconn` as YAML.
pub fn select_by_column<C>(
dbconn: &rusqlite::Connection,
table_name: &str,