Documentation ¶
Index ¶
- func IsUniqueConstraintError(err string, indexName []string) bool
- type IssueStore
- type PullRequestStore
- type SQLIssueStore
- type SQLPullRequestStore
- func (s SQLPullRequestStore) CreateIndexesIfNotExists()
- func (s SQLPullRequestStore) Get(repoOwner, repoName string, number int) (*model.PullRequest, error)
- func (s SQLPullRequestStore) ListOpen() ([]*model.PullRequest, error)
- func (s SQLPullRequestStore) Save(pr *model.PullRequest) (*model.PullRequest, error)
- type SQLSpinmintStore
- func (s SQLSpinmintStore) CreateIndexesIfNotExists()
- func (s SQLSpinmintStore) Delete(instanceID string) error
- func (s SQLSpinmintStore) Get(prNumber int, repoName string) (*model.Spinmint, error)
- func (s SQLSpinmintStore) List() ([]*model.Spinmint, error)
- func (s SQLSpinmintStore) Save(spinmint *model.Spinmint) (*model.Spinmint, error)
- type SQLStore
- func (ss *SQLStore) AlterColumnTypeIfExists(tableName string, columnName string, mySQLColType string, ...) bool
- func (ss *SQLStore) Close()
- func (ss *SQLStore) CreateColumnIfNotExists(tableName string, columnName string, mySQLColType string, ...) bool
- func (ss *SQLStore) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (ss *SQLStore) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (ss *SQLStore) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (ss *SQLStore) DoesColumnExist(tableName string, columnName string) bool
- func (ss *SQLStore) DoesTableExist(tableName string) bool
- func (ss *SQLStore) DropAllTables()
- func (ss *SQLStore) GetAllConns() []*gorp.DbMap
- func (ss *SQLStore) GetMaster() *gorp.DbMap
- func (ss *SQLStore) GetMaxLengthOfColumnIfExists(tableName string, columnName string) string
- func (ss *SQLStore) GetReplica() *gorp.DbMap
- func (ss *SQLStore) Issue() IssueStore
- func (ss *SQLStore) PullRequest() PullRequestStore
- func (ss *SQLStore) RemoveColumnIfExists(tableName string, columnName string) bool
- func (ss *SQLStore) RemoveIndexIfExists(indexName string, tableName string) bool
- func (ss *SQLStore) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool
- func (ss *SQLStore) Spinmint() SpinmintStore
- type SpinmintStore
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUniqueConstraintError ¶
Types ¶
type IssueStore ¶
type IssueStore interface { Save(issue *model.Issue) (*model.Issue, error) Get(repoOwner, repoName string, number int) (*model.Issue, error) }
func NewSQLIssueStore ¶
func NewSQLIssueStore(sqlStore *SQLStore) IssueStore
type PullRequestStore ¶
type PullRequestStore interface { Save(pr *model.PullRequest) (*model.PullRequest, error) Get(repoOwner, repoName string, number int) (*model.PullRequest, error) ListOpen() ([]*model.PullRequest, error) }
func NewSQLPullRequestStore ¶
func NewSQLPullRequestStore(sqlStore *SQLStore) PullRequestStore
type SQLIssueStore ¶
type SQLIssueStore struct {
*SQLStore
}
func (SQLIssueStore) CreateIndexesIfNotExists ¶
func (s SQLIssueStore) CreateIndexesIfNotExists()
type SQLPullRequestStore ¶
type SQLPullRequestStore struct {
*SQLStore
}
func (SQLPullRequestStore) CreateIndexesIfNotExists ¶
func (s SQLPullRequestStore) CreateIndexesIfNotExists()
func (SQLPullRequestStore) Get ¶
func (s SQLPullRequestStore) Get(repoOwner, repoName string, number int) (*model.PullRequest, error)
func (SQLPullRequestStore) ListOpen ¶
func (s SQLPullRequestStore) ListOpen() ([]*model.PullRequest, error)
func (SQLPullRequestStore) Save ¶
func (s SQLPullRequestStore) Save(pr *model.PullRequest) (*model.PullRequest, error)
type SQLSpinmintStore ¶
type SQLSpinmintStore struct {
*SQLStore
}
func (SQLSpinmintStore) CreateIndexesIfNotExists ¶
func (s SQLSpinmintStore) CreateIndexesIfNotExists()
func (SQLSpinmintStore) Delete ¶
func (s SQLSpinmintStore) Delete(instanceID string) error
type SQLStore ¶
type SQLStore struct { SchemaVersion string // contains filtered or unexported fields }
func (*SQLStore) AlterColumnTypeIfExists ¶
func (*SQLStore) CreateColumnIfNotExists ¶
func (*SQLStore) CreateFullTextIndexIfNotExists ¶
func (*SQLStore) CreateIndexIfNotExists ¶
func (*SQLStore) CreateUniqueIndexIfNotExists ¶
func (*SQLStore) DoesColumnExist ¶
func (*SQLStore) DoesTableExist ¶
func (*SQLStore) DropAllTables ¶
func (ss *SQLStore) DropAllTables()
func (*SQLStore) GetAllConns ¶
func (*SQLStore) GetMaxLengthOfColumnIfExists ¶
func (*SQLStore) GetReplica ¶
func (*SQLStore) Issue ¶
func (ss *SQLStore) Issue() IssueStore
func (*SQLStore) PullRequest ¶
func (ss *SQLStore) PullRequest() PullRequestStore
func (*SQLStore) RemoveColumnIfExists ¶
func (*SQLStore) RemoveIndexIfExists ¶
func (*SQLStore) RenameColumnIfExists ¶
func (*SQLStore) Spinmint ¶
func (ss *SQLStore) Spinmint() SpinmintStore
type SpinmintStore ¶
type SpinmintStore interface { Save(spinmint *model.Spinmint) (*model.Spinmint, error) Delete(instanceID string) error Get(prNumber int, repoName string) (*model.Spinmint, error) List() ([]*model.Spinmint, error) }
func NewSQLSpinmintStore ¶
func NewSQLSpinmintStore(sqlStore *SQLStore) SpinmintStore
type Store ¶
type Store interface { PullRequest() PullRequestStore Issue() IssueStore Spinmint() SpinmintStore Close() DropAllTables() }
func NewSQLStore ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.