You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,13 +46,14 @@ export default function App() {
46
46
47
47
useEffect(() => {
48
48
asyncfunctiongetAlbums() {
49
-
constdb=newDatabase({
50
-
connectionstring:'<your-connection-string>',
51
-
usewebsocket:true,
52
-
});
49
+
constdb=newDatabase('<your-connection-string>');
53
50
54
51
constresult=
55
-
awaitdb.sql`USE DATABASE chinook.sqlite; SELECT albums.AlbumId as id, albums.Title as title, artists.name as artist FROM albums INNER JOIN artists WHERE artists.ArtistId = albums.ArtistId LIMIT 20;`;
52
+
awaitdb.sql`USE DATABASE chinook.sqlite;
53
+
SELECT albums.AlbumId as id, albums.Title as title, artists.name as artist
54
+
FROM albums
55
+
INNER JOIN artists
56
+
WHERE artists.ArtistId = albums.ArtistId LIMIT 20;`;
0 commit comments