-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also apparently we don't need to install now, we get it already somehow.
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
sqlite3 jsk.db "create view jsk_fellows as | ||
select | ||
users.id, | ||
users.name, | ||
users.description, | ||
users.location, | ||
users.url, | ||
'https://twitter.com/' || users.screen_name as twitter, | ||
group_concat(lists.slug) as fellowship, | ||
users.followers_count, | ||
users.created_at, | ||
users.verified, | ||
users.screen_name | ||
from users | ||
join list_members | ||
on list_members.user = users.id | ||
join lists | ||
on list_members.list = lists.id | ||
where | ||
lists.slug like 'jsk-fellows%' | ||
and lists.slug not like '%projects' | ||
group by users.id;" | ||
sqlite3 jsk.db .schema |