Greg Burd
d6b3d1818a
Booleans should be stored as their int value, not string value.
2020-01-16 10:58:26 -05:00
Greg Burd
b2f92b8461
Update to 2018 edition of Rust (1.42). Fix and format code. Update dependencies. Fix tests.
2020-01-16 10:58:21 -05:00
Conrad Dean
c2122a210c
fix compiler warnings
2019-07-23 10:38:59 -04:00
Conrad Dean
bcb56b0561
stop the docs folder from taking over every search result
2019-07-23 09:01:22 -04:00
Conrad Dean
be02b86bbe
fix tolstoy tests when running "cargo test -p mentat_tolstoy"
2019-07-23 08:51:57 -04:00
Conrad Dean
e6a2af3553
fix compile errors in tests
2019-07-22 22:48:38 -04:00
Conrad Dean
2b97a90b64
not sure if this Value is needed. it started to conflict a different return type a few days ago
2019-07-22 22:31:44 -04:00
Conrad Dean
ae9f969e59
re structure result type nesting combined with correct .into call
...
this was a bit of a trip! we will see if I actually did this correctly
later...
2019-07-22 22:30:08 -04:00
Conrad Dean
4d92e3eef9
the params macro fixes everything
2019-07-22 22:29:35 -04:00
Conrad Dean
3547cfcd16
fix weird params mis-matches with the params macro
2019-07-22 22:20:14 -04:00
Conrad Dean
4e9d6b3f58
help compiler with an annotation on the outside of an expression instead of halfway through the middle of an expression
2019-07-22 09:10:49 -04:00
Conrad Dean
76ae972e2e
fix for rusqlite Result api
2019-07-22 08:58:19 -04:00
Conrad Dean
f4002f34f4
fix empty param type inference with macro and update for rusqlite Result api
2019-07-22 08:54:51 -04:00
Conrad Dean
5596873e8f
fiddle with changes in borrow types since rusqlite changed their api
2019-07-22 08:47:23 -04:00
Conrad Dean
cdfd1f6b30
Fix raw get() api to using the Result-based api
...
rusqlite must have just returned the data itself rather than relying on
the Result type to communicate failures to callers. Fixing that here,
albeit in a fragile way.
2019-07-22 08:36:32 -04:00
Conrad Dean
ff48f6369a
fix breaking change on rusqlite changing RowIndex's signature
...
RowIndex must have just been an alias over i32, but now it's a trait
implemented on str and usize, so we need to change mentat's internal
type alias for it to a usize.
2019-07-22 08:33:34 -04:00
Conrad Dean
95780c0ab5
type signature on rusqlite::Row changed, only need one lifetime annotation
2019-07-22 07:41:53 -04:00
Conrad Dean
e3bd1cb77e
iterator error was because it must return a rusqlite::Result. use rusqlite macro for empty params
2019-07-22 07:40:59 -04:00
Conrad Dean
a25f476734
remove wrapper types that seem unnecessary, and wrap the result of a fn with a Result as the compiler told me
2019-07-20 13:22:46 -04:00
Conrad Dean
17112dbc4d
fix bug where param types cannot be inferred (because its an empty set of params)
2019-07-19 11:25:00 -04:00
Conrad Dean
b6b316953e
seems to resolve some compiler errors
2019-07-17 11:46:47 -04:00
Conrad Dean
3d965fdf6e
try fixing build by upgrading rusqlite to 0.19
2019-07-17 10:59:38 -04:00