diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-20 00:45:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:38 +0100 |
| commit | 4cb6ab669032ef0584fde63e62addfe8a71a484c (patch) | |
| tree | 7f9fbc6d0981b1e247c3c89545f24d5a3a6ffaaa /src/lib/sqlite_table.cc | |
| parent | eb6464c1099de3967fc8d3b7de1461da85c7e827 (diff) | |
Use SQLite for show playlists.
Diffstat (limited to 'src/lib/sqlite_table.cc')
| -rw-r--r-- | src/lib/sqlite_table.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/sqlite_table.cc b/src/lib/sqlite_table.cc index 81843ee00..79c6f99d0 100644 --- a/src/lib/sqlite_table.cc +++ b/src/lib/sqlite_table.cc @@ -76,3 +76,11 @@ SQLiteTable::select(string const& condition) const { return fmt::format("SELECT id,{} FROM {} {}", join_strings(_columns, ","), _name, condition); } + + +string +SQLiteTable::remove(string const& condition) const +{ + DCPOMATIC_ASSERT(!_columns.empty()); + return fmt::format("DELETE FROM {} {}", _name, condition); +} |
