MCPcopy
hub / github.com/multica-ai/multica / CreateGitHubInstallation

Method CreateGitHubInstallation

server/pkg/db/generated/github.sql.go:38–60  ·  view source on GitHub ↗
(ctx context.Context, arg CreateGitHubInstallationParams)

Source from the content-addressed store, hash-verified

36}
37
38func (q *Queries) CreateGitHubInstallation(ctx context.Context, arg CreateGitHubInstallationParams) (GithubInstallation, error) {
39 row := q.db.QueryRow(ctx, createGitHubInstallation,
40 arg.WorkspaceID,
41 arg.InstallationID,
42 arg.AccountLogin,
43 arg.AccountType,
44 arg.AccountAvatarUrl,
45 arg.ConnectedByID,
46 )
47 var i GithubInstallation
48 err := row.Scan(
49 &i.ID,
50 &i.WorkspaceID,
51 &i.InstallationID,
52 &i.AccountLogin,
53 &i.AccountType,
54 &i.AccountAvatarUrl,
55 &i.ConnectedByID,
56 &i.CreatedAt,
57 &i.UpdatedAt,
58 )
59 return i, err
60}
61
62const deleteGitHubInstallation = `-- name: DeleteGitHubInstallation :exec
63DELETE FROM github_installation WHERE id = $1 AND workspace_id = $2

Calls 2

QueryRowMethod · 0.65
ScanMethod · 0.45