Commit Graph

25 Commits (b2e63350283813ff5cbe89ad4c8ae68ff4b3fe1a)

Author SHA1 Message Date
Tomáš Mládek b2e6335028 chore: use url instead of string in address 2023-05-19 17:30:09 +02:00
Tomáš Mládek 6bb7e5a4e3 fix, tests: add guess_from test, fix url detection 2023-05-19 17:14:33 +02:00
Tomáš Mládek e30cd61c54 fix: invariant entries have 0 timestamp 2023-04-24 18:57:11 +02:00
Tomáš Mládek 6c0434a289 chore: `cargo update`, fix clippy lints 2023-04-24 17:43:49 +02:00
Tomáš Mládek 36e788b9d3 feat!: add provenance & timestamp to Entry 2023-04-02 19:56:01 +02:00
Tomáš Mládek afbd3b97ef fix: update project url, fix tests
:)
2022-07-31 22:53:12 +02:00
Tomáš Mládek 5051ac25c6 decode valueless entires as NaN
since NaN == NULL in SQLite, apparently
2022-03-20 23:44:10 +01:00
Tomáš Mládek 4f36bff549
id3 improvements - extract year/bpm as numbers; fix id3 extract job name; exit early if file isn't audio
also add EntryValue::guess_from
2022-03-02 08:13:35 +01:00
Tomáš Mládek 4e54c19ee5
disallow empty attributes in entries 2022-02-19 17:30:55 +01:00
Tomáš Mládek dc808aab22
explicit NULL entryvalue 2022-02-19 14:59:21 +01:00
Tomáš Mládek 0ef7ea5b3a
also impl From<f64> and From<Address> 2022-02-13 12:56:29 +01:00
Tomáš Mládek b417dad0ec
impl From<AsRef<str>> for EntryValue, replace where appropriate 2022-02-13 12:56:29 +01:00
Tomáš Mládek e81d520993
fix empty string value handling 2022-02-13 12:56:29 +01:00
Tomáš Mládek 038e4fd7d2
move InEntry/InAddress to routes 2022-02-12 14:51:28 +01:00
Tomáš Mládek 471c60c19e
fix entry PUTting 2022-02-12 13:56:41 +01:00
Tomáš Mládek 674663028d
add metadata to urls on insert 2022-02-10 11:38:45 +01:00
Tomáš Mládek 5ad64a6591
make a PUT to /api/obj also insert bare addresses and prepare metadata; bunch of tidying up
/api/obj returns [entry_addr, entity_addr]
ADDED_ATTR is a const
impl TryInto<Address > for InAddress
2022-02-09 20:37:20 +01:00
Tomáš Mládek b5a90ce57c
support denoting entry entities in decomposed format (adding URLs) 2022-02-07 21:59:30 +01:00
Tomáš Mládek 25bc14e3b4
allow searching in entities (URLs, attrs) 2022-02-07 18:33:57 +01:00
Tomáš Mládek 0f2fa6836f
refactor TryFrom<Entry, ImmutableEntry> 2022-02-07 18:27:02 +01:00
Tomáš Mládek 8c8d58847a
separate value_string and value_number columns
to be able to utilize SQL queries better for ranges, comparisons, etc.
2022-01-28 18:17:14 +01:00
Tomáš Mládek fa957794e5
encode/decode -> b58_encode/decode 2022-01-26 16:55:23 +01:00
Tomáš Mládek 0920fec0ce add immutable entries for size, etc (does nothing for now) 2022-01-21 17:59:53 +01:00
Tomáš Mládek 2b6886645b more cleanup and refactoring and moving
move models.rs and schema.rs into database::inner
create util module (with hash and jobs)
2021-07-26 21:14:51 +02:00
Tomáš Mládek 754c315cd2 refactor database.rs into separate files 2021-07-26 21:00:05 +02:00