Skip to main content

topics

Creates, updates, deletes, gets or lists a topics resource.

Overview

Nametopics
TypeResource
Idgithub.repos.topics

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_all_topicsselectowner, repopage, per_page
replace_all_topicsreplaceowner, 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.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples

Response

SELECT
*
FROM github.repos.topics
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;

REPLACE examples

No description available.

REPLACE github.repos.topics
SET
names = '{{ names }}'
WHERE
owner = '{{ owner }}' --required
AND repo = '{{ repo }}' --required
AND names = '{{ names }}' --required
RETURNING
names;