<feed xmlns='http://www.w3.org/2005/Atom'>
<title>yaqlite/src/yaml, branch master</title>
<subtitle>A bridge between YAML and SQLite</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/'/>
<entry>
<title>Add license (GNU GPLv3+)</title>
<updated>2022-03-27T03:58:36+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-27T03:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=a4ff3950de526c6a6325c47ce334acf9576028ef'/>
<id>a4ff3950de526c6a6325c47ce334acf9576028ef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>yaml::write: Add documentation</title>
<updated>2022-03-22T23:17:08+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-22T23:17:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=087856980808aa210d12a2cc8d0e047c5cdb2869'/>
<id>087856980808aa210d12a2cc8d0e047c5cdb2869</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sql: Add documentation</title>
<updated>2022-03-21T01:21:59+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-21T01:21:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=28fb8fd2df135d3234b1230acbf98a0a08b14110'/>
<id>28fb8fd2df135d3234b1230acbf98a0a08b14110</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sql: Remove `From` impl for `Yaml` idea comment</title>
<updated>2022-03-21T01:13:57+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-21T01:12:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=5fc732507522af3565655b01f1473baa0e1a1da2'/>
<id>5fc732507522af3565655b01f1473baa0e1a1da2</id>
<content type='text'>
This was obviated by using `Cow::Borrowed` and `Cow::Owned` directly
when creating a `Yaml`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was obviated by using `Cow::Borrowed` and `Cow::Owned` directly
when creating a `Yaml`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add placeholders for code documentation reminders</title>
<updated>2022-03-21T01:11:50+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-21T01:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=5e48997ecb4df8ce9507e6229df457d1065b19bc'/>
<id>5e48997ecb4df8ce9507e6229df457d1065b19bc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>main: Write YAML to standard output</title>
<updated>2022-03-19T19:41:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-19T19:41:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=78358c6f9e084b27a5fc513095a972c6b0e3361a'/>
<id>78358c6f9e084b27a5fc513095a972c6b0e3361a</id>
<content type='text'>
Create an adapter from `std::fmt::Write` to `std::io::Write` based on
the following idea in the standard library:

https://github.com/rust-lang/rust/blob/master/library/std/src/io/mod.rs#L1634-L1652

Since `yaml_rust::YamlEmitter::new()` requires a `std::fmt::Write`,
adapt standard output so the emitter can write to it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create an adapter from `std::fmt::Write` to `std::io::Write` based on
the following idea in the standard library:

https://github.com/rust-lang/rust/blob/master/library/std/src/io/mod.rs#L1634-L1652

Since `yaml_rust::YamlEmitter::new()` requires a `std::fmt::Write`,
adapt standard output so the emitter can write to it.
</pre>
</div>
</content>
</entry>
<entry>
<title>select(): Build a `yaml_rust::yaml::Hash` for each row</title>
<updated>2022-03-18T23:37:32+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-18T23:37:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=d78addd46aa7633346c47dd310c972ef0e9029fa'/>
<id>d78addd46aa7633346c47dd310c972ef0e9029fa</id>
<content type='text'>
Instead of my earlier `std::collections::HashMap`, build the type we
want to return directly in the row closure.

Required copying some data like the column names, but I don't see a way
around that. I suppose we could make `yaml_rust::Yaml`s from the column
headers in the row closure too instead of copying an existing column
header that we otherwise never use.

This nearly passes the test I have for this function, but it includes
the `id` column in the `Yaml` hash. The primary key column will need to
be removed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of my earlier `std::collections::HashMap`, build the type we
want to return directly in the row closure.

Required copying some data like the column names, but I don't see a way
around that. I suppose we could make `yaml_rust::Yaml`s from the column
headers in the row closure too instead of copying an existing column
header that we otherwise never use.

This nearly passes the test I have for this function, but it includes
the `id` column in the `Yaml` hash. The primary key column will need to
be removed.
</pre>
</div>
</content>
</entry>
<entry>
<title>select(): Trying to inspect data queried from database</title>
<updated>2022-03-17T23:49:56+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-17T23:49:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=825355068ba919c9f58593293f917328e7833c20'/>
<id>825355068ba919c9f58593293f917328e7833c20</id>
<content type='text'>
Can't get the info from inside the closure it seems. The row iterator
doesn't seem to be looping. Not sure what the story is yet. Maybe I'm
not converting the data types correctly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Can't get the info from inside the closure it seems. The row iterator
doesn't seem to be looping. Not sure what the story is yet. Maybe I'm
not converting the data types correctly.
</pre>
</div>
</content>
</entry>
<entry>
<title>yaml::sql::Yaml: Make this type `pub(crate)`</title>
<updated>2022-03-17T23:05:48+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-17T23:05:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=2cf56295d64a42ee6e4d86b1932077480bb51984'/>
<id>2cf56295d64a42ee6e4d86b1932077480bb51984</id>
<content type='text'>
It doesn't need to be completely public.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It doesn't need to be completely public.
</pre>
</div>
</content>
</entry>
<entry>
<title>Yaml: Wrap a `Cow&lt;'_, yaml_rust::Yaml&gt;` instead of `yaml_rust::Yaml`</title>
<updated>2022-03-17T22:57:09+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-03-17T22:57:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/yaqlite/commit/?id=bd16ac71423ea5abd3d406d8f9fe579f3fec8ee0'/>
<id>bd16ac71423ea5abd3d406d8f9fe579f3fec8ee0</id>
<content type='text'>
This allows us to use a borrowed `yaml_rust::Yaml` for `ToSql` and an
owned `yaml_rust::Yaml` for `FromSql`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows us to use a borrowed `yaml_rust::Yaml` for `ToSql` and an
owned `yaml_rust::Yaml` for `FromSql`.
</pre>
</div>
</content>
</entry>
</feed>
