Documentation ¶
Index ¶
- Constants
- Variables
- func Close(c io.Closer, f func(err error))
- func ComposeCodebaseSourceURL(repoURL, versionTag string) (url string, err error)
- func DDL() string
- func WarnOnError(err error)
- type Category
- type CategoryType
- type Codebase
- type DBTX
- type DataStore
- type DataStoreQueries
- type DeleteCodebaseByProjectIdAndVersionTagParams
- type EnumType
- type Fields
- type File
- type FuncDecl
- type Import
- type ImportSpec
- type InsertCategoryParams
- type InsertCodebaseParams
- type InsertFileParams
- type InsertImportParams
- type InsertMethodParams
- type InsertModuleVersionParams
- type InsertPackageParams
- type InsertPackageTypeParams
- type InsertPackageVersionParams
- type InsertProjectParams
- type InsertSurveyModuleParams
- type InsertSurveyParams
- type InsertSymbolTypeParams
- type InsertTypeParams
- type InsertVariableParams
- type ListSurveysRow
- type LoadCodebaseIDByProjectAndVersionParams
- type LoadSurveyByRepoURLRow
- type Method
- type Module
- type ModuleVersion
- type ModuleVersionView
- type Package
- type PackageType
- type PackageVersion
- type Project
- type Queries
- func (q *Queries) DeleteCategory(ctx context.Context, id int64) error
- func (q *Queries) DeleteCodebase(ctx context.Context, id int64) error
- func (q *Queries) DeleteCodebaseByProjectIdAndVersionTag(ctx context.Context, arg DeleteCodebaseByProjectIdAndVersionTagParams) error
- func (q *Queries) DeleteCodebaseSurveys(ctx context.Context, codebaseID int64) error
- func (q *Queries) DeleteFile(ctx context.Context, id int64) error
- func (q *Queries) DeleteImport(ctx context.Context, id int64) error
- func (q *Queries) DeleteMethod(ctx context.Context, id int64) error
- func (q *Queries) DeleteModule(ctx context.Context, id int64) error
- func (q *Queries) DeleteModuleVersion(ctx context.Context, id int64) error
- func (q *Queries) DeletePackage(ctx context.Context, id int64) error
- func (q *Queries) DeletePackageType(ctx context.Context, id int64) error
- func (q *Queries) DeletePackageVersion(ctx context.Context, id int64) error
- func (q *Queries) DeleteProject(ctx context.Context, id int64) error
- func (q *Queries) DeleteProjectByName(ctx context.Context, name string) error
- func (q *Queries) DeleteSurvey(ctx context.Context, id int64) error
- func (q *Queries) DeleteSurveyModule(ctx context.Context, id int64) error
- func (q *Queries) DeleteSymbolType(ctx context.Context, id int64) error
- func (q *Queries) DeleteType(ctx context.Context, id int64) error
- func (q *Queries) DeleteVariable(ctx context.Context, id int64) error
- func (q *Queries) InsertCategory(ctx context.Context, arg InsertCategoryParams) (Category, error)
- func (q *Queries) InsertCodebase(ctx context.Context, arg InsertCodebaseParams) (Codebase, error)
- func (q *Queries) InsertFile(ctx context.Context, arg InsertFileParams) (File, error)
- func (q *Queries) InsertImport(ctx context.Context, arg InsertImportParams) (Import, error)
- func (q *Queries) InsertMethod(ctx context.Context, arg InsertMethodParams) (Method, error)
- func (q *Queries) InsertModule(ctx context.Context, name string) (Module, error)
- func (q *Queries) InsertModuleVersion(ctx context.Context, arg InsertModuleVersionParams) (ModuleVersion, error)
- func (q *Queries) InsertPackage(ctx context.Context, arg InsertPackageParams) (Package, error)
- func (q *Queries) InsertPackageType(ctx context.Context, arg InsertPackageTypeParams) (PackageType, error)
- func (q *Queries) InsertPackageVersion(ctx context.Context, arg InsertPackageVersionParams) (PackageVersion, error)
- func (q *Queries) InsertProject(ctx context.Context, arg InsertProjectParams) (Project, error)
- func (q *Queries) InsertSurvey(ctx context.Context, arg InsertSurveyParams) (Survey, error)
- func (q *Queries) InsertSurveyModule(ctx context.Context, arg InsertSurveyModuleParams) (SurveyModule, error)
- func (q *Queries) InsertSymbolType(ctx context.Context, arg InsertSymbolTypeParams) (SymbolType, error)
- func (q *Queries) InsertType(ctx context.Context, arg InsertTypeParams) (Type, error)
- func (q *Queries) InsertVariable(ctx context.Context, arg InsertVariableParams) (Variable, error)
- func (q *Queries) ListCategories(ctx context.Context) ([]Category, error)
- func (q *Queries) ListCodebaseSurveys(ctx context.Context, codebaseID int64) ([]Survey, error)
- func (q *Queries) ListCodebases(ctx context.Context) ([]Codebase, error)
- func (q *Queries) ListFiles(ctx context.Context) ([]File, error)
- func (q *Queries) ListFilesBySurvey(ctx context.Context, surveyID int64) ([]File, error)
- func (q *Queries) ListImports(ctx context.Context) ([]Import, error)
- func (q *Queries) ListMethods(ctx context.Context) ([]Method, error)
- func (q *Queries) ListModuleVersions(ctx context.Context) ([]ModuleVersion, error)
- func (q *Queries) ListModules(ctx context.Context) ([]Module, error)
- func (q *Queries) ListPackageTypes(ctx context.Context) ([]PackageType, error)
- func (q *Queries) ListPackageTypesByName(ctx context.Context) ([]PackageType, error)
- func (q *Queries) ListPackageVersions(ctx context.Context) ([]PackageVersion, error)
- func (q *Queries) ListPackages(ctx context.Context) ([]Package, error)
- func (q *Queries) ListProjects(ctx context.Context) ([]Project, error)
- func (q *Queries) ListSurveyModules(ctx context.Context) ([]SurveyModule, error)
- func (q *Queries) ListSurveys(ctx context.Context) ([]ListSurveysRow, error)
- func (q *Queries) ListSymbolTypes(ctx context.Context) ([]SymbolType, error)
- func (q *Queries) ListSymbolTypesByName(ctx context.Context) ([]SymbolType, error)
- func (q *Queries) ListTypes(ctx context.Context) ([]TypeView, error)
- func (q *Queries) ListTypesByFile(ctx context.Context, fileID int64) ([]TypeView, error)
- func (q *Queries) ListTypesBySurvey(ctx context.Context, surveyID int64) ([]TypeView, error)
- func (q *Queries) ListVariables(ctx context.Context) ([]Variable, error)
- func (q *Queries) LoadCategory(ctx context.Context, id int64) (Category, error)
- func (q *Queries) LoadCodebase(ctx context.Context, id int64) (Codebase, error)
- func (q *Queries) LoadCodebaseIDByProjectAndVersion(ctx context.Context, arg LoadCodebaseIDByProjectAndVersionParams) (int64, error)
- func (q *Queries) LoadCodebaseIdByRepoURL(ctx context.Context, repoUrl string) (int64, error)
- func (q *Queries) LoadFile(ctx context.Context, id int64) (File, error)
- func (q *Queries) LoadImport(ctx context.Context, id int64) (Import, error)
- func (q *Queries) LoadMethod(ctx context.Context, id int64) (Method, error)
- func (q *Queries) LoadModule(ctx context.Context, id int64) (Module, error)
- func (q *Queries) LoadModuleVersion(ctx context.Context, id int64) (ModuleVersion, error)
- func (q *Queries) LoadPackage(ctx context.Context, id int64) (Package, error)
- func (q *Queries) LoadPackageType(ctx context.Context, id int64) (PackageType, error)
- func (q *Queries) LoadPackageVersion(ctx context.Context, id int64) (PackageVersion, error)
- func (q *Queries) LoadProject(ctx context.Context, id int64) (Project, error)
- func (q *Queries) LoadProjectByName(ctx context.Context, name string) (Project, error)
- func (q *Queries) LoadProjectByRepoURL(ctx context.Context, repoUrl string) (Project, error)
- func (q *Queries) LoadProjectRepoURL(ctx context.Context, id int64) (string, error)
- func (q *Queries) LoadSurvey(ctx context.Context, id int64) (Survey, error)
- func (q *Queries) LoadSurveyByRepoURL(ctx context.Context, repoUrl string) (LoadSurveyByRepoURLRow, error)
- func (q *Queries) LoadSurveyModule(ctx context.Context, id int64) (SurveyModule, error)
- func (q *Queries) LoadSymbolType(ctx context.Context, id int64) (SymbolType, error)
- func (q *Queries) LoadType(ctx context.Context, id int64) (Type, error)
- func (q *Queries) LoadVariable(ctx context.Context, id int64) (Variable, error)
- func (q *Queries) UpdateCategory(ctx context.Context, arg UpdateCategoryParams) error
- func (q *Queries) UpdateCodebase(ctx context.Context, arg UpdateCodebaseParams) error
- func (q *Queries) UpdateCodebaseByProjectIdAndVersionTag(ctx context.Context, arg UpdateCodebaseByProjectIdAndVersionTagParams) error
- func (q *Queries) UpdateFile(ctx context.Context, arg UpdateFileParams) error
- func (q *Queries) UpdateImport(ctx context.Context, arg UpdateImportParams) error
- func (q *Queries) UpdateMethod(ctx context.Context, arg UpdateMethodParams) error
- func (q *Queries) UpdateModule(ctx context.Context, arg UpdateModuleParams) error
- func (q *Queries) UpdateModuleVersion(ctx context.Context, arg UpdateModuleVersionParams) error
- func (q *Queries) UpdatePackage(ctx context.Context, arg UpdatePackageParams) error
- func (q *Queries) UpdatePackageType(ctx context.Context, arg UpdatePackageTypeParams) error
- func (q *Queries) UpdatePackageVersion(ctx context.Context, arg UpdatePackageVersionParams) error
- func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) error
- func (q *Queries) UpdateProjectByName(ctx context.Context, arg UpdateProjectByNameParams) error
- func (q *Queries) UpdateSurveyModule(ctx context.Context, arg UpdateSurveyModuleParams) error
- func (q *Queries) UpdateSymbolType(ctx context.Context, arg UpdateSymbolTypeParams) error
- func (q *Queries) UpdateType(ctx context.Context, arg UpdateTypeParams) error
- func (q *Queries) UpdateVariable(ctx context.Context, arg UpdateVariableParams) error
- func (q *Queries) UpsertCategory(ctx context.Context, arg UpsertCategoryParams) (Category, error)
- func (q *Queries) UpsertCodebase(ctx context.Context, arg UpsertCodebaseParams) (Codebase, error)
- func (q *Queries) UpsertFile(ctx context.Context, arg UpsertFileParams) (File, error)
- func (q *Queries) UpsertImport(ctx context.Context, arg UpsertImportParams) (Import, error)
- func (q *Queries) UpsertModule(ctx context.Context, name string) (Module, error)
- func (q *Queries) UpsertModuleVersion(ctx context.Context, arg UpsertModuleVersionParams) (ModuleVersion, error)
- func (q *Queries) UpsertPackage(ctx context.Context, arg UpsertPackageParams) (Package, error)
- func (q *Queries) UpsertPackageType(ctx context.Context, arg UpsertPackageTypeParams) (PackageType, error)
- func (q *Queries) UpsertPackageVersion(ctx context.Context, arg UpsertPackageVersionParams) (PackageVersion, error)
- func (q *Queries) UpsertProject(ctx context.Context, arg UpsertProjectParams) (Project, error)
- func (q *Queries) UpsertSurveyModule(ctx context.Context, arg UpsertSurveyModuleParams) (SurveyModule, error)
- func (q *Queries) UpsertSymbolType(ctx context.Context, arg UpsertSymbolTypeParams) (SymbolType, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RepoInfo
- type SQLGenerator
- type SqliteDataStore
- func (db *SqliteDataStore) DB() *sql.DB
- func (ds *SqliteDataStore) Initialize(ctx context.Context) (err error)
- func (db *SqliteDataStore) Open() (err error)
- func (db *SqliteDataStore) Queries() DataStoreQueries
- func (db *SqliteDataStore) Query(ctx context.Context, sql string) (err error)
- func (db *SqliteDataStore) SetQueries(q DataStoreQueries)
- type Survey
- type SurveyModule
- type SurveyPersister
- type SurveyView
- type SymbolType
- type TestDB
- func (db TestDB) ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
- func (db TestDB) PrepareContext(context.Context, string) (*sql.Stmt, error)
- func (db TestDB) QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
- func (db TestDB) QueryRowContext(context.Context, string, ...interface{}) *sql.Row
- type Type
- type TypeSpec
- type TypeView
- type UpdateCategoryParams
- type UpdateCodebaseByProjectIdAndVersionTagParams
- type UpdateCodebaseParams
- type UpdateFileParams
- type UpdateImportParams
- type UpdateMethodParams
- type UpdateModuleParams
- type UpdateModuleVersionParams
- type UpdatePackageParams
- type UpdatePackageTypeParams
- type UpdatePackageVersionParams
- type UpdateProjectByNameParams
- type UpdateProjectParams
- type UpdateSurveyModuleParams
- type UpdateSymbolTypeParams
- type UpdateTypeParams
- type UpdateVariableParams
- type UpsertCategoryParams
- type UpsertCodebaseParams
- type UpsertFileParams
- type UpsertImportParams
- type UpsertModuleVersionParams
- type UpsertPackageParams
- type UpsertPackageTypeParams
- type UpsertPackageVersionParams
- type UpsertProjectParams
- type UpsertSpec
- type UpsertSurveyModuleParams
- type UpsertSymbolTypeParams
- type ValueSpec
- type Variable
Constants ¶
View Source
const ( SqliteDB = "./data/gerardus.db" RepoURLArg = "repo_url" )
Variables ¶
View Source
var ( ErrFailedToInsertSpec = serr.New("failed to insert Spec") ErrFailedWhilePersisting = serr.New("failed while persisting") ErrInvalidGitHubRepoURL = serr.New("invalid Github URL").ValidArgs("repo_url") ErrHTTPRequestFailed = serr.New("failed HTTP request").ValidArgs("status_code", "request_url") ErrValueCannotBeEmpty = serr.New("value cannot be empty").ValidArgs("which_value") ErrFailedConvertToAbsPath = serr.New("failed to convert to absolute path").ValidArgs("filepath") ErrFailedToInitDataStore = serr.New("failed to initialize data store").ValidArgs("data_file") ErrFailedToReadHTTPResponseBody = serr.New("failed to read HTTP response body").ValidArgs("request_url") ErrFailedToUnmarshalJSON = serr.New("failed to unmarshal the JSON").ValidArgs("source") )
View Source
var StdErrWriter io.Writer = os.Stderr
Functions ¶
func WarnOnError ¶
func WarnOnError(err error)
Types ¶
type CategoryType ¶
type DataStore ¶
type DataStore interface { Open() error Query(ctx context.Context, sql string) error DB() *sql.DB Initialize(ctx context.Context) error Queries() DataStoreQueries SetQueries(DataStoreQueries) }
func Initialize ¶
func NewSqliteDataStore ¶
type DataStoreQueries ¶
type DataStoreQueries interface { WithTx(tx *sql.Tx) *Queries DeleteCategory(ctx context.Context, id int64) error DeleteCodebase(ctx context.Context, id int64) error DeleteCodebaseByProjectIdAndVersionTag(ctx context.Context, arg DeleteCodebaseByProjectIdAndVersionTagParams) error DeleteCodebaseSurveys(ctx context.Context, codebaseID int64) error DeleteFile(ctx context.Context, id int64) error DeleteImport(ctx context.Context, id int64) error DeleteMethod(ctx context.Context, id int64) error DeleteModule(ctx context.Context, id int64) error DeleteModuleVersion(ctx context.Context, id int64) error DeletePackage(ctx context.Context, id int64) error DeletePackageType(ctx context.Context, id int64) error DeletePackageVersion(ctx context.Context, id int64) error DeleteProject(ctx context.Context, id int64) error DeleteProjectByName(ctx context.Context, name string) error DeleteSurvey(ctx context.Context, id int64) error DeleteSurveyModule(ctx context.Context, id int64) error DeleteSymbolType(ctx context.Context, id int64) error DeleteType(ctx context.Context, id int64) error DeleteVariable(ctx context.Context, id int64) error InsertCategory(ctx context.Context, arg InsertCategoryParams) (Category, error) InsertCodebase(ctx context.Context, arg InsertCodebaseParams) (Codebase, error) InsertFile(ctx context.Context, arg InsertFileParams) (File, error) InsertImport(ctx context.Context, arg InsertImportParams) (Import, error) InsertMethod(ctx context.Context, arg InsertMethodParams) (Method, error) InsertModule(ctx context.Context, name string) (Module, error) InsertModuleVersion(ctx context.Context, arg InsertModuleVersionParams) (ModuleVersion, error) InsertPackage(ctx context.Context, arg InsertPackageParams) (Package, error) InsertPackageType(ctx context.Context, arg InsertPackageTypeParams) (PackageType, error) InsertPackageVersion(ctx context.Context, arg InsertPackageVersionParams) (PackageVersion, error) InsertProject(ctx context.Context, arg InsertProjectParams) (Project, error) InsertSurvey(ctx context.Context, arg InsertSurveyParams) (Survey, error) InsertSurveyModule(ctx context.Context, arg InsertSurveyModuleParams) (SurveyModule, error) InsertSymbolType(ctx context.Context, arg InsertSymbolTypeParams) (SymbolType, error) InsertType(ctx context.Context, arg InsertTypeParams) (Type, error) InsertVariable(ctx context.Context, arg InsertVariableParams) (Variable, error) ListCategories(ctx context.Context) ([]Category, error) ListCodebaseSurveys(ctx context.Context, codebaseID int64) ([]Survey, error) ListCodebases(ctx context.Context) ([]Codebase, error) ListFiles(ctx context.Context) ([]File, error) ListFilesBySurvey(ctx context.Context, surveyID int64) ([]File, error) ListImports(ctx context.Context) ([]Import, error) ListMethods(ctx context.Context) ([]Method, error) ListModuleVersions(ctx context.Context) ([]ModuleVersion, error) ListModules(ctx context.Context) ([]Module, error) ListPackageTypes(ctx context.Context) ([]PackageType, error) ListPackageTypesByName(ctx context.Context) ([]PackageType, error) ListPackageVersions(ctx context.Context) ([]PackageVersion, error) ListPackages(ctx context.Context) ([]Package, error) ListProjects(ctx context.Context) ([]Project, error) ListSurveyModules(ctx context.Context) ([]SurveyModule, error) ListSurveys(ctx context.Context) ([]ListSurveysRow, error) ListSymbolTypes(ctx context.Context) ([]SymbolType, error) ListSymbolTypesByName(ctx context.Context) ([]SymbolType, error) ListTypes(ctx context.Context) ([]TypeView, error) ListTypesByFile(ctx context.Context, fileID int64) ([]TypeView, error) ListTypesBySurvey(ctx context.Context, surveyID int64) ([]TypeView, error) ListVariables(ctx context.Context) ([]Variable, error) LoadCategory(ctx context.Context, id int64) (Category, error) LoadCodebase(ctx context.Context, id int64) (Codebase, error) LoadCodebaseIDByProjectAndVersion(ctx context.Context, arg LoadCodebaseIDByProjectAndVersionParams) (int64, error) LoadCodebaseIdByRepoURL(ctx context.Context, repoUrl string) (int64, error) LoadFile(ctx context.Context, id int64) (File, error) LoadImport(ctx context.Context, id int64) (Import, error) LoadMethod(ctx context.Context, id int64) (Method, error) LoadModule(ctx context.Context, id int64) (Module, error) LoadModuleVersion(ctx context.Context, id int64) (ModuleVersion, error) LoadPackage(ctx context.Context, id int64) (Package, error) LoadPackageType(ctx context.Context, id int64) (PackageType, error) LoadPackageVersion(ctx context.Context, id int64) (PackageVersion, error) LoadProject(ctx context.Context, id int64) (Project, error) LoadProjectByName(ctx context.Context, name string) (Project, error) LoadProjectByRepoURL(ctx context.Context, repoUrl string) (Project, error) LoadProjectRepoURL(ctx context.Context, id int64) (string, error) LoadSurvey(ctx context.Context, id int64) (Survey, error) LoadSurveyByRepoURL(ctx context.Context, repoUrl string) (LoadSurveyByRepoURLRow, error) LoadSurveyModule(ctx context.Context, id int64) (SurveyModule, error) LoadSymbolType(ctx context.Context, id int64) (SymbolType, error) LoadType(ctx context.Context, id int64) (Type, error) LoadVariable(ctx context.Context, id int64) (Variable, error) UpdateCategory(ctx context.Context, arg UpdateCategoryParams) error UpdateCodebase(ctx context.Context, arg UpdateCodebaseParams) error UpdateCodebaseByProjectIdAndVersionTag(ctx context.Context, arg UpdateCodebaseByProjectIdAndVersionTagParams) error UpdateFile(ctx context.Context, arg UpdateFileParams) error UpdateImport(ctx context.Context, arg UpdateImportParams) error UpdateMethod(ctx context.Context, arg UpdateMethodParams) error UpdateModule(ctx context.Context, arg UpdateModuleParams) error UpdateModuleVersion(ctx context.Context, arg UpdateModuleVersionParams) error UpdatePackage(ctx context.Context, arg UpdatePackageParams) error UpdatePackageType(ctx context.Context, arg UpdatePackageTypeParams) error UpdatePackageVersion(ctx context.Context, arg UpdatePackageVersionParams) error UpdateProject(ctx context.Context, arg UpdateProjectParams) error UpdateProjectByName(ctx context.Context, arg UpdateProjectByNameParams) error UpdateSurveyModule(ctx context.Context, arg UpdateSurveyModuleParams) error UpdateSymbolType(ctx context.Context, arg UpdateSymbolTypeParams) error UpdateType(ctx context.Context, arg UpdateTypeParams) error UpdateVariable(ctx context.Context, arg UpdateVariableParams) error UpsertCategory(ctx context.Context, arg UpsertCategoryParams) (Category, error) UpsertCodebase(ctx context.Context, arg UpsertCodebaseParams) (Codebase, error) UpsertFile(ctx context.Context, arg UpsertFileParams) (File, error) UpsertImport(ctx context.Context, arg UpsertImportParams) (Import, error) UpsertModule(ctx context.Context, name string) (Module, error) UpsertModuleVersion(ctx context.Context, arg UpsertModuleVersionParams) (ModuleVersion, error) UpsertPackage(ctx context.Context, arg UpsertPackageParams) (Package, error) UpsertPackageType(ctx context.Context, arg UpsertPackageTypeParams) (PackageType, error) UpsertPackageVersion(ctx context.Context, arg UpsertPackageVersionParams) (PackageVersion, error) UpsertProject(ctx context.Context, arg UpsertProjectParams) (Project, error) UpsertSurveyModule(ctx context.Context, arg UpsertSurveyModuleParams) (SurveyModule, error) UpsertSymbolType(ctx context.Context, arg UpsertSymbolTypeParams) (SymbolType, error) }
DataStoreQueries ...
type Fields ¶
type Fields []string
func NewFieldsFromString ¶
func (Fields) DoUpdateSet ¶
func (Fields) PlaceHolders ¶
type ImportSpec ¶
type ImportSpec struct {
ImportSpec collector.ImportSpec
}
func (ImportSpec) SQL ¶
func (i ImportSpec) SQL() []string
type InsertCategoryParams ¶
type InsertCodebaseParams ¶
type InsertFileParams ¶
type InsertImportParams ¶
type InsertMethodParams ¶
type InsertPackageParams ¶
type InsertPackageTypeParams ¶
type InsertProjectParams ¶
type InsertSurveyParams ¶
type InsertSymbolTypeParams ¶
type InsertTypeParams ¶
type InsertVariableParams ¶
type ListSurveysRow ¶
type LoadSurveyByRepoURLRow ¶
type ModuleVersion ¶
type ModuleVersionView ¶
type PackageType ¶
type PackageVersion ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteCategory ¶
func (*Queries) DeleteCodebase ¶
func (*Queries) DeleteCodebaseByProjectIdAndVersionTag ¶
func (q *Queries) DeleteCodebaseByProjectIdAndVersionTag(ctx context.Context, arg DeleteCodebaseByProjectIdAndVersionTagParams) error
func (*Queries) DeleteCodebaseSurveys ¶
func (*Queries) DeleteModuleVersion ¶
func (*Queries) DeletePackage ¶
func (*Queries) DeletePackageType ¶
func (*Queries) DeletePackageVersion ¶
func (*Queries) DeleteProject ¶
func (*Queries) DeleteProjectByName ¶
func (*Queries) DeleteSurveyModule ¶
func (*Queries) DeleteSymbolType ¶
func (*Queries) DeleteVariable ¶
func (*Queries) InsertCategory ¶
func (*Queries) InsertCodebase ¶
func (*Queries) InsertFile ¶
func (*Queries) InsertImport ¶
func (*Queries) InsertMethod ¶
func (*Queries) InsertModule ¶
func (*Queries) InsertModuleVersion ¶
func (q *Queries) InsertModuleVersion(ctx context.Context, arg InsertModuleVersionParams) (ModuleVersion, error)
func (*Queries) InsertPackage ¶
func (*Queries) InsertPackageType ¶
func (q *Queries) InsertPackageType(ctx context.Context, arg InsertPackageTypeParams) (PackageType, error)
func (*Queries) InsertPackageVersion ¶
func (q *Queries) InsertPackageVersion(ctx context.Context, arg InsertPackageVersionParams) (PackageVersion, error)
func (*Queries) InsertProject ¶
func (*Queries) InsertSurvey ¶
func (*Queries) InsertSurveyModule ¶
func (q *Queries) InsertSurveyModule(ctx context.Context, arg InsertSurveyModuleParams) (SurveyModule, error)
func (*Queries) InsertSymbolType ¶
func (q *Queries) InsertSymbolType(ctx context.Context, arg InsertSymbolTypeParams) (SymbolType, error)
func (*Queries) InsertType ¶
func (*Queries) InsertVariable ¶
func (*Queries) ListCategories ¶
func (*Queries) ListCodebaseSurveys ¶
func (*Queries) ListCodebases ¶
func (*Queries) ListFilesBySurvey ¶
func (*Queries) ListModuleVersions ¶
func (q *Queries) ListModuleVersions(ctx context.Context) ([]ModuleVersion, error)
func (*Queries) ListPackageTypes ¶
func (q *Queries) ListPackageTypes(ctx context.Context) ([]PackageType, error)
func (*Queries) ListPackageTypesByName ¶
func (q *Queries) ListPackageTypesByName(ctx context.Context) ([]PackageType, error)
func (*Queries) ListPackageVersions ¶
func (q *Queries) ListPackageVersions(ctx context.Context) ([]PackageVersion, error)
func (*Queries) ListPackages ¶
func (*Queries) ListProjects ¶
func (*Queries) ListSurveyModules ¶
func (q *Queries) ListSurveyModules(ctx context.Context) ([]SurveyModule, error)
func (*Queries) ListSurveys ¶
func (q *Queries) ListSurveys(ctx context.Context) ([]ListSurveysRow, error)
func (*Queries) ListSymbolTypes ¶
func (q *Queries) ListSymbolTypes(ctx context.Context) ([]SymbolType, error)
func (*Queries) ListSymbolTypesByName ¶
func (q *Queries) ListSymbolTypesByName(ctx context.Context) ([]SymbolType, error)
func (*Queries) ListTypesByFile ¶
func (*Queries) ListTypesBySurvey ¶
func (*Queries) ListVariables ¶
func (*Queries) LoadCategory ¶
func (*Queries) LoadCodebase ¶
func (*Queries) LoadCodebaseIDByProjectAndVersion ¶
func (*Queries) LoadCodebaseIdByRepoURL ¶
func (*Queries) LoadImport ¶
func (*Queries) LoadMethod ¶
func (*Queries) LoadModule ¶
func (*Queries) LoadModuleVersion ¶
func (*Queries) LoadPackage ¶
func (*Queries) LoadPackageType ¶
func (*Queries) LoadPackageVersion ¶
func (*Queries) LoadProject ¶
func (*Queries) LoadProjectByName ¶
func (*Queries) LoadProjectByRepoURL ¶
func (*Queries) LoadProjectRepoURL ¶
func (*Queries) LoadSurvey ¶
func (*Queries) LoadSurveyByRepoURL ¶
func (*Queries) LoadSurveyModule ¶
func (*Queries) LoadSymbolType ¶
func (*Queries) LoadVariable ¶
func (*Queries) UpdateCategory ¶
func (q *Queries) UpdateCategory(ctx context.Context, arg UpdateCategoryParams) error
func (*Queries) UpdateCodebase ¶
func (q *Queries) UpdateCodebase(ctx context.Context, arg UpdateCodebaseParams) error
func (*Queries) UpdateCodebaseByProjectIdAndVersionTag ¶
func (q *Queries) UpdateCodebaseByProjectIdAndVersionTag(ctx context.Context, arg UpdateCodebaseByProjectIdAndVersionTagParams) error
func (*Queries) UpdateFile ¶
func (q *Queries) UpdateFile(ctx context.Context, arg UpdateFileParams) error
func (*Queries) UpdateImport ¶
func (q *Queries) UpdateImport(ctx context.Context, arg UpdateImportParams) error
func (*Queries) UpdateMethod ¶
func (q *Queries) UpdateMethod(ctx context.Context, arg UpdateMethodParams) error
func (*Queries) UpdateModule ¶
func (q *Queries) UpdateModule(ctx context.Context, arg UpdateModuleParams) error
func (*Queries) UpdateModuleVersion ¶
func (q *Queries) UpdateModuleVersion(ctx context.Context, arg UpdateModuleVersionParams) error
func (*Queries) UpdatePackage ¶
func (q *Queries) UpdatePackage(ctx context.Context, arg UpdatePackageParams) error
func (*Queries) UpdatePackageType ¶
func (q *Queries) UpdatePackageType(ctx context.Context, arg UpdatePackageTypeParams) error
func (*Queries) UpdatePackageVersion ¶
func (q *Queries) UpdatePackageVersion(ctx context.Context, arg UpdatePackageVersionParams) error
func (*Queries) UpdateProject ¶
func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) error
func (*Queries) UpdateProjectByName ¶
func (q *Queries) UpdateProjectByName(ctx context.Context, arg UpdateProjectByNameParams) error
func (*Queries) UpdateSurveyModule ¶
func (q *Queries) UpdateSurveyModule(ctx context.Context, arg UpdateSurveyModuleParams) error
func (*Queries) UpdateSymbolType ¶
func (q *Queries) UpdateSymbolType(ctx context.Context, arg UpdateSymbolTypeParams) error
func (*Queries) UpdateType ¶
func (q *Queries) UpdateType(ctx context.Context, arg UpdateTypeParams) error
func (*Queries) UpdateVariable ¶
func (q *Queries) UpdateVariable(ctx context.Context, arg UpdateVariableParams) error
func (*Queries) UpsertCategory ¶
func (*Queries) UpsertCodebase ¶
func (*Queries) UpsertFile ¶
func (*Queries) UpsertImport ¶
func (*Queries) UpsertModule ¶
func (*Queries) UpsertModuleVersion ¶
func (q *Queries) UpsertModuleVersion(ctx context.Context, arg UpsertModuleVersionParams) (ModuleVersion, error)
func (*Queries) UpsertPackage ¶
func (*Queries) UpsertPackageType ¶
func (q *Queries) UpsertPackageType(ctx context.Context, arg UpsertPackageTypeParams) (PackageType, error)
func (*Queries) UpsertPackageVersion ¶
func (q *Queries) UpsertPackageVersion(ctx context.Context, arg UpsertPackageVersionParams) (PackageVersion, error)
func (*Queries) UpsertProject ¶
func (*Queries) UpsertSurveyModule ¶
func (q *Queries) UpsertSurveyModule(ctx context.Context, arg UpsertSurveyModuleParams) (SurveyModule, error)
func (*Queries) UpsertSymbolType ¶
func (q *Queries) UpsertSymbolType(ctx context.Context, arg UpsertSymbolTypeParams) (SymbolType, error)
type RepoInfo ¶
RepoInfo contains relevant information about a GitHub repository
func RequestGitHubRepoInfo ¶
RequestGitHubRepoInfo retrieves RepoInfo{} from the GitHub API from a passed GitHub repo URL, returning errors if they exist. gofi:stub
type SQLGenerator ¶
type SQLGenerator interface {
SQL() []string
}
type SqliteDataStore ¶
type SqliteDataStore struct { Filepath string // contains filtered or unexported fields }
func (*SqliteDataStore) DB ¶
func (db *SqliteDataStore) DB() *sql.DB
func (*SqliteDataStore) Initialize ¶
func (ds *SqliteDataStore) Initialize(ctx context.Context) (err error)
func (*SqliteDataStore) Open ¶
func (db *SqliteDataStore) Open() (err error)
func (*SqliteDataStore) Queries ¶
func (db *SqliteDataStore) Queries() DataStoreQueries
func (*SqliteDataStore) Query ¶
func (db *SqliteDataStore) Query(ctx context.Context, sql string) (err error)
func (*SqliteDataStore) SetQueries ¶
func (db *SqliteDataStore) SetQueries(q DataStoreQueries)
type SurveyModule ¶
type SurveyPersister ¶
type SurveyPersister struct {
// contains filtered or unexported fields
}
func NewSurveyPersister ¶
func NewSurveyPersister(survey survey, ds DataStore) *SurveyPersister
func (*SurveyPersister) PersistChan ¶
type SurveyView ¶
type SymbolType ¶
type TestDB ¶
type TestDB struct { }
func (TestDB) ExecContext ¶
func (TestDB) PrepareContext ¶
func (TestDB) QueryContext ¶
type UpdateCategoryParams ¶
type UpdateCodebaseParams ¶
type UpdateFileParams ¶
type UpdateImportParams ¶
type UpdateMethodParams ¶
type UpdateModuleParams ¶
type UpdatePackageParams ¶
type UpdatePackageTypeParams ¶
type UpdateProjectParams ¶
type UpdateSymbolTypeParams ¶
type UpdateTypeParams ¶
type UpdateVariableParams ¶
type UpsertCategoryParams ¶
type UpsertCodebaseParams ¶
type UpsertFileParams ¶
type UpsertImportParams ¶
type UpsertPackageParams ¶
type UpsertPackageTypeParams ¶
type UpsertProjectParams ¶
type UpsertSpec ¶
func NewUpsertSpec ¶
func NewUpsertSpec(tbl string, flds ...string) *UpsertSpec
func (*UpsertSpec) UpsertSQL ¶
func (us *UpsertSpec) UpsertSQL() string
type UpsertSymbolTypeParams ¶
Click to show internal directories.
Click to hide internal directories.