diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-20 00:45:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-03 21:37:04 +0100 |
| commit | 9b841fddd3aa4a1117b03299bce964c5e4b205d9 (patch) | |
| tree | 61022295269b8e55a5fbefabb88183dd96d1afcf /src/lib/sqlite_table.cc | |
| parent | 8a4591d1f77e2de6e92385e0ab0b3efc714feeb9 (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); +} |
