Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-27 | Add license (GNU GPLv3+)v0.0.1 | Teddy Wing | |
2022-03-23 | lib: Add documentation for `Error` type | Teddy Wing | |
2022-03-21 | Add placeholders for code documentation reminders | Teddy Wing | |
2022-03-21 | lib: Move `insert()` to a new module | Teddy Wing | |
Split this code out into its own module like we've done with `select()`. Feels better organised this way. | |||
2022-03-21 | Add a couple of notes for code cleanup | Teddy Wing | |
2022-03-19 | main: If `primary_key` option is given, select by given column name | Teddy Wing | |
2022-03-14 | Idea for selecting a record from the database as YAML | Teddy Wing | |
2022-03-13 | yaqlite::Error: Include `rusqlite` error description | Teddy Wing | |
2022-03-13 | insert(): Remove `unwrap()`s | Teddy Wing | |
Use a new `yaqlite::Error` type. Remove the other error types and use this main error type everywhere. For now, that seems simpler. The real reason why I centralised on one error type is that I wanted a single `Error::Sqlite` variant for both `rusqlite::Error` and `SqliteError` errors. However, I wasn't sure if it's possible to do that with `thiserror`, and I didn't want to bother having to write my own `std::error::Error` impls. | |||
2022-03-13 | extract(): Remove `unwrap()`s | Teddy Wing | |
2022-03-13 | get_column_names(): Remove `unwrap()`s | Teddy Wing | |
Return a `Result` and wrap errors in a `thiserror` struct. | |||
2022-03-13 | insert(): Test that an array of YAML records get inserted | Teddy Wing | |
2022-03-13 | insert(): Add test for non-array YAML hash | Teddy Wing | |
Test that a plain YAML hash gets inserted even when not wrapped in an array. | |||
2022-03-13 | insert(): Add a test for nonexistent column handling | Teddy Wing | |
Check that nonexistent columns are ignored from the input YAML. | |||
2022-03-13 | insert(): Two new test ideas | Teddy Wing | |
2022-03-13 | inserts_yaml_in_database(): Generalise test code | Teddy Wing | |
Extract the test code to a new function so that it can be reused to test other YAML inputs and database records. | |||
2022-03-13 | yaqlite::insert(): Add test | Teddy Wing | |
Check that the function inserts a record into the database based on a YAML input. Adjust the `extract()` function to take the table name as an argument. | |||
2022-03-12 | Add an `insert()` function for inserting YAML in database | Teddy Wing | |
Make an interface that more cleanly says "insert this YAML into this database". | |||
2022-03-12 | Move `Yaml` newtype to a new module in library crate | Teddy Wing | |
Separate this code from the main binary file. | |||
2022-03-10 | Start encoding SQLite affinity rules | Teddy Wing | |
Need to figure out what to do for NUMERIC affinity since Rusqlite doesn't expose a variant for that pseudo-type. | |||
2022-03-09 | Idea for getting SQLite type affinity from a type string | Teddy Wing | |