gh-sql

command module
v0.0.0-...-914df79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

gh-sql

GitHub SQL is a tool to fetch data from the GitHub API and store it in a SQL database. The ultimate goal is to have the data locally to perform queries on the dataset.

The tool has the following focuses:

  • Being targeted towards storing information about specific repositories.
    • Discovery of users or repositories is a non-goal.
  • Being able to incrementally update the database, fetching what has changed in a repository using the events API (either through polling, even in long intervals (up to 1 month) or through WebSockets).
  • Being able to easily "saved" in a single SQL file for quick recovery and replication.
  • Replicating the GitHub REST API in read-only operations, without rate limiting (for integration with existing tools that use the GitHub API, by only changing the API endpoint.)

Documentation

Overview

Command gh-sql is the main entrypoint for the gh-sql tool.

Directories

Path Synopsis
ent
schema
Package schema specifies the ent schema types for gh-sql's database.
Package schema specifies the ent schema types for gh-sql's database.
pkg
model
Package model defines some types used within the ent schemas.
Package model defines some types used within the ent schemas.
rest
Package rest implements a REST API for gh-sql, mimicking the GitHub REST API.
Package rest implements a REST API for gh-sql, mimicking the GitHub REST API.
sync
Package sync implements a system to fetch GitHub repositories concurrently.
Package sync implements a system to fetch GitHub repositories concurrently.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL