added a bunch of stuff

This commit is contained in:
JISAUAY committed 2025-04-22 16:35:48 -05:00
1 parent 5aaf6ede5d
commit 95c4dc96f6
26 files changed
+362 -27

No files matched your search

+1
View File
@@ -0,0 +1 @@
SELECT * FROM albums WHERE id = ?;
+1
View File
@@ -0,0 +1 @@
SELECT * FROM albums WHERE name = ?;
-3
View File
@@ -1,3 +0,0 @@
SELECT *
FROM albums
WHERE name = ?;
+1
View File
@@ -0,0 +1 @@
SELECT * FROM artists WHERE id = ?;
-3
View File
@@ -1,3 +0,0 @@
SELECT *
FROM artists
WHERE name = ?;
+1
View File
@@ -0,0 +1 @@
SELECT id FROM songs ORDER BY id DESC LIMIT 1;
-4
View File
@@ -1,4 +0,0 @@
SELECT *
FROM songs
ORDER BY id
DESC LIMIT 1;
+1
View File
@@ -0,0 +1 @@
SELECT * FROM songs WHERE id = ?;
+1
View File
@@ -0,0 +1 @@
SELECT * FROM songs WHERE musicBrainzId = ?;
+1
View File
@@ -0,0 +1 @@
SELECT * FROM songs WHERE name = ? ORDER BY id ASC;
-4
View File
@@ -1,4 +0,0 @@
SELECT *
FROM songs
WHERE name = ?
AND artist = ?;
-3
View File
@@ -1,3 +0,0 @@
SELECT *
FROM users
WHERE name = ?;
+1 -3
View File
@@ -1,3 +1 @@
INSERT INTO
albums (name, spotify_id, cover_art_url)
VALUES (?, ?, ?);
INSERT INTO albums (id, name, musicBrainzId, cover_art_url) VALUES (?, ?, ?, ?);
+1 -3
View File
@@ -1,3 +1 @@
INSERT INTO
artists (name, spotify_id, icon_url)
VALUES (?, ?, ?);
INSERT INTO artists (id, name, musicBrainzId, icon_url) VALUES (?, ?, ?, ?);
+1
View File
@@ -0,0 +1 @@
INSERT INTO "listen-events" (sond_id, user_id, date, time) VALUES (?, ?, ?, ?);
+1 -4
View File
@@ -1,4 +1 @@
-- With Spotify Id
INSERT INTO
songs (id, name, length, album, artist, spotify_id)
VALUES (?, ?, ?, ?, ?, ?);
INSERT INTO songs (id, name, length, album_id, artist_id, musicBrainzId) VALUES (?, ?, ?, ?, ?, ?);