Function selects data from TravisTorrent table, creates new table (with additional column author_mail with e-mail address of commit's author) and insert data into this new table. Values of author_mail column are collected from Github using Github API
1 2 | insertToDB(dbName, dbHost, dbLogin, dbPassword, clientId, clientSecret,
newTableName, ttTableName, projects)
|
dbName |
name of database |
dbHost |
host of database |
dbLogin |
user of database |
dbPassword |
user's password to connect to database |
clientId |
Github's client ID which is received when register to Github |
clientSecret |
Github's client secret which is received when register to Github |
newTableName |
name of a table which you want to create and insert data to |
ttTableName |
name of TravisTorrent table which currently exists in your database |
projects |
names of projects which you want to filter data table by, should be given as string with comma as delimiter |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.