queries_test.go 743 B

123456789101112131415161718192021222324
  1. package repository_test
  2. const testQueryInsertHeyJude = `
  3. insert into songs (track_number, title, artist, album, duration, modified_date, base_path, relative_path)
  4. values ($1, $2, $3, $4, $5, $6, $7, $8)
  5. returning id
  6. `
  7. const testQueryInsertTrack1 = `
  8. insert into songs (track_number, title, artist, album, duration, modified_date, base_path, relative_path)
  9. values ($1, $2, $3, $4, $5, $6, $7, $8)
  10. returning id
  11. `
  12. const testQuerySelectAllSongs = `
  13. select track_number, title, artist, album, duration, base_path, relative_path, modified_date
  14. from songs
  15. `
  16. const testQuerySelectSong12 = `
  17. select track_number, title, artist, album, duration, base_path, relative_path, modified_date
  18. from songs
  19. where relative_path in ('song1.ogg', 'song2.ogg')
  20. `