Skip to content

Conversation

@onkoe
Copy link
Member

@onkoe onkoe commented Jan 19, 2025

Here, I implement search using the sea-query crate and some fun SQL syntax.

See: #10

onkoe added 19 commits January 19, 2025 15:14
also i hope this fixes it (probably wont, cant even test in `act` either D:
`jiff` doesn't yet have ecosystem support, unfortunately! `chrono` is still pretty good, though :)
reduces string stuff in tests and likely elsewhere in the future :D
see #11 for more info

this just makes search a little easier to implement for now :)
tags are no longer name-based :)

that's because i want to have a table in the db for them! and that helps with caching and knowing 'what' to look for
we were doing this manually before
it doesn't really make much sense. in the future, i'll come back with better types for a `Between` modifier!
`SimpleExpr` makes queries much easier to construct dynamically! it also prevents mistakes (and spares me from writing a grammar  lol)
i forgot to make them a lot lol
that makes it work for some reason

should probably read the internals at some point but whatever, this does fine for now..!
@onkoe onkoe linked an issue Jan 20, 2025 that may be closed by this pull request
onkoe added 8 commits January 20, 2025 15:09
makes the code easier to edit + simplifies test creation :)
making that a field will make searching by album muuuuch easier!
otherwise, they're all using the same database and messing with each other lol
the high second cts make tests really annoying lol
uuids likely shouldn't be stored within media metadata. if a user wants to modify it from another device, it won't recognize the tags!

in addition, i think we'll do something like adding metadata fields for different tag sections, which should be easier to parse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complete search functionality with SQLx

2 participants