issues
search
bolsinga
/
itunes_json
This uses the iTunesLibrary or MusicKit framework to emit JSON representing the music library.
2
stars
0
forks
source link
Introduce Database.Statement
#366
Closed
bolsinga
closed
4 months ago
bolsinga
commented
4 months ago
It represents the string sql and the parameters.
This type can be built from swift string interpolation.
This work is inspired by / stolen from
https://gist.github.com/beccadax/0b46ce25b7da1049e61b4669352094b6#file-sqlitestatement-swift
This allows the sql string to be either used as
.sql
for binding, or
.description
for source code.
This removes the global state that would emit string interpolation differently, removing the last strict concurrency problem!
This could use some further refinement, but as it stands it is just somewhat better than before.
Fixes #330
.sql
for binding, or.description
for source code.