Documentation ¶
Index ¶
- type GetDatabaseSchemaRow
- type GetRolePermissionsRow
- type GetTableConstraintsBySchemasRow
- type MockQuerier
- func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
- func (_m *MockQuerier) GetDatabaseSchema(ctx context.Context, db mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error)
- func (_m *MockQuerier) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
- func (_m *MockQuerier) GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)
- type MockQuerier_Expecter
- func (_e *MockQuerier_Expecter) GetDatabaseSchema(ctx interface{}, db interface{}) *MockQuerier_GetDatabaseSchema_Call
- func (_e *MockQuerier_Expecter) GetRolePermissions(ctx interface{}, db interface{}) *MockQuerier_GetRolePermissions_Call
- func (_e *MockQuerier_Expecter) GetTableConstraintsBySchemas(ctx interface{}, db interface{}, schemas interface{}) *MockQuerier_GetTableConstraintsBySchemas_Call
- type MockQuerier_GetDatabaseSchema_Call
- func (_c *MockQuerier_GetDatabaseSchema_Call) Return(_a0 []*GetDatabaseSchemaRow, _a1 error) *MockQuerier_GetDatabaseSchema_Call
- func (_c *MockQuerier_GetDatabaseSchema_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX)) *MockQuerier_GetDatabaseSchema_Call
- func (_c *MockQuerier_GetDatabaseSchema_Call) RunAndReturn(run func(context.Context, mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error)) *MockQuerier_GetDatabaseSchema_Call
- type MockQuerier_GetRolePermissions_Call
- func (_c *MockQuerier_GetRolePermissions_Call) Return(_a0 []*GetRolePermissionsRow, _a1 error) *MockQuerier_GetRolePermissions_Call
- func (_c *MockQuerier_GetRolePermissions_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX)) *MockQuerier_GetRolePermissions_Call
- func (_c *MockQuerier_GetRolePermissions_Call) RunAndReturn(...) *MockQuerier_GetRolePermissions_Call
- type MockQuerier_GetTableConstraintsBySchemas_Call
- func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) Return(_a0 []*GetTableConstraintsBySchemasRow, _a1 error) *MockQuerier_GetTableConstraintsBySchemas_Call
- func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX, schemas []string)) *MockQuerier_GetTableConstraintsBySchemas_Call
- func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) RunAndReturn(...) *MockQuerier_GetTableConstraintsBySchemas_Call
- type Querier
- type Queries
- func (q *Queries) GetDatabaseSchema(ctx context.Context, db mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error)
- func (q *Queries) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
- func (q *Queries) GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetDatabaseSchemaRow ¶ added in v0.4.57
type GetDatabaseSchemaRow struct { TableSchema string TableName string ColumnName string OrdinalPosition int32 ColumnDefault string IsNullable string DataType string CharacterMaximumLength sql.NullInt32 NumericPrecision sql.NullInt16 NumericScale sql.NullInt16 IsIdentity bool IsComputed bool GenerationExpression sql.NullString }
type GetRolePermissionsRow ¶
type GetTableConstraintsBySchemasRow ¶ added in v0.4.57
type GetTableConstraintsBySchemasRow struct { SchemaName string TableName string ConstraintName string ConstraintType string ConstraintColumns string ConstraintColumnsNullability string ReferencedTable sql.NullString ReferencedColumns sql.NullString FKActions sql.NullString CheckClause sql.NullString }
type MockQuerier ¶
MockQuerier is an autogenerated mock type for the Querier type
func NewMockQuerier ¶
func NewMockQuerier(t interface { mock.TestingT Cleanup(func()) }) *MockQuerier
NewMockQuerier creates a new instance of MockQuerier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockQuerier) EXPECT ¶
func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
func (*MockQuerier) GetDatabaseSchema ¶ added in v0.4.57
func (_m *MockQuerier) GetDatabaseSchema(ctx context.Context, db mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error)
GetDatabaseSchema provides a mock function with given fields: ctx, db
func (*MockQuerier) GetRolePermissions ¶
func (_m *MockQuerier) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
GetRolePermissions provides a mock function with given fields: ctx, db
func (*MockQuerier) GetTableConstraintsBySchemas ¶ added in v0.4.57
func (_m *MockQuerier) GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)
GetTableConstraintsBySchemas provides a mock function with given fields: ctx, db, schemas
type MockQuerier_Expecter ¶
type MockQuerier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockQuerier_Expecter) GetDatabaseSchema ¶ added in v0.4.57
func (_e *MockQuerier_Expecter) GetDatabaseSchema(ctx interface{}, db interface{}) *MockQuerier_GetDatabaseSchema_Call
GetDatabaseSchema is a helper method to define mock.On call
- ctx context.Context
- db mysql_queries.DBTX
func (*MockQuerier_Expecter) GetRolePermissions ¶
func (_e *MockQuerier_Expecter) GetRolePermissions(ctx interface{}, db interface{}) *MockQuerier_GetRolePermissions_Call
GetRolePermissions is a helper method to define mock.On call
- ctx context.Context
- db mysql_queries.DBTX
func (*MockQuerier_Expecter) GetTableConstraintsBySchemas ¶ added in v0.4.57
func (_e *MockQuerier_Expecter) GetTableConstraintsBySchemas(ctx interface{}, db interface{}, schemas interface{}) *MockQuerier_GetTableConstraintsBySchemas_Call
GetTableConstraintsBySchemas is a helper method to define mock.On call
- ctx context.Context
- db mysql_queries.DBTX
- schemas []string
type MockQuerier_GetDatabaseSchema_Call ¶ added in v0.4.57
MockQuerier_GetDatabaseSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatabaseSchema'
func (*MockQuerier_GetDatabaseSchema_Call) Return ¶ added in v0.4.57
func (_c *MockQuerier_GetDatabaseSchema_Call) Return(_a0 []*GetDatabaseSchemaRow, _a1 error) *MockQuerier_GetDatabaseSchema_Call
func (*MockQuerier_GetDatabaseSchema_Call) Run ¶ added in v0.4.57
func (_c *MockQuerier_GetDatabaseSchema_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX)) *MockQuerier_GetDatabaseSchema_Call
func (*MockQuerier_GetDatabaseSchema_Call) RunAndReturn ¶ added in v0.4.57
func (_c *MockQuerier_GetDatabaseSchema_Call) RunAndReturn(run func(context.Context, mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error)) *MockQuerier_GetDatabaseSchema_Call
type MockQuerier_GetRolePermissions_Call ¶
MockQuerier_GetRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRolePermissions'
func (*MockQuerier_GetRolePermissions_Call) Return ¶
func (_c *MockQuerier_GetRolePermissions_Call) Return(_a0 []*GetRolePermissionsRow, _a1 error) *MockQuerier_GetRolePermissions_Call
func (*MockQuerier_GetRolePermissions_Call) Run ¶
func (_c *MockQuerier_GetRolePermissions_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX)) *MockQuerier_GetRolePermissions_Call
func (*MockQuerier_GetRolePermissions_Call) RunAndReturn ¶
func (_c *MockQuerier_GetRolePermissions_Call) RunAndReturn(run func(context.Context, mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)) *MockQuerier_GetRolePermissions_Call
type MockQuerier_GetTableConstraintsBySchemas_Call ¶ added in v0.4.57
MockQuerier_GetTableConstraintsBySchemas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTableConstraintsBySchemas'
func (*MockQuerier_GetTableConstraintsBySchemas_Call) Return ¶ added in v0.4.57
func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) Return(_a0 []*GetTableConstraintsBySchemasRow, _a1 error) *MockQuerier_GetTableConstraintsBySchemas_Call
func (*MockQuerier_GetTableConstraintsBySchemas_Call) Run ¶ added in v0.4.57
func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX, schemas []string)) *MockQuerier_GetTableConstraintsBySchemas_Call
func (*MockQuerier_GetTableConstraintsBySchemas_Call) RunAndReturn ¶ added in v0.4.57
func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) RunAndReturn(run func(context.Context, mysql_queries.DBTX, []string) ([]*GetTableConstraintsBySchemasRow, error)) *MockQuerier_GetTableConstraintsBySchemas_Call
type Querier ¶
type Querier interface { GetDatabaseSchema(ctx context.Context, db mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error) GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error) }
type Queries ¶
type Queries struct{}
func (*Queries) GetDatabaseSchema ¶ added in v0.4.57
func (q *Queries) GetDatabaseSchema(ctx context.Context, db mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error)
func (*Queries) GetRolePermissions ¶
func (q *Queries) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
func (*Queries) GetTableConstraintsBySchemas ¶ added in v0.4.57
func (q *Queries) GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)