topics
Creates, updates, deletes, gets or lists a topics resource.
Overview
| Name | topics |
| Type | Resource |
| Id | github.repos.topics |
Fields
The following fields are returned by SELECT queries:
- get_all_topics
Response
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_all_topics | select | owner, repo | page, per_page | |
replace_all_topics | replace | owner, repo, names |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- get_all_topics
Response
SELECT
*
FROM github.repos.topics
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;
REPLACE examples
- replace_all_topics
No description available.
REPLACE github.repos.topics
SET
names = '{{ names }}'
WHERE
owner = '{{ owner }}' --required
AND repo = '{{ repo }}' --required
AND names = '{{ names }}' --required
RETURNING
names;