Documentation ¶
Index ¶
- type AdminPrivilege
- type DBTX
- type DbPrivilege
- type GetCustomFunctionsBySchemasRow
- type GetCustomTriggersBySchemaAndTablesParams
- type GetCustomTriggersBySchemaAndTablesRow
- type GetDatabaseSchemaRow
- type GetDatabaseTableSchemasBySchemasAndTablesParams
- type GetDatabaseTableSchemasBySchemasAndTablesRow
- type GetIndicesBySchemasAndTablesParams
- type GetIndicesBySchemasAndTablesRow
- type GetMysqlRolePermissionsRow
- type GetTableConstraintsBySchemasRow
- type GetTableConstraintsParams
- type GetTableConstraintsRow
- type MockDBTX
- func (_m *MockDBTX) EXPECT() *MockDBTX_Expecter
- func (_m *MockDBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
- func (_m *MockDBTX) PrepareContext(_a0 context.Context, _a1 string) (*sql.Stmt, error)
- func (_m *MockDBTX) QueryContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (*sql.Rows, error)
- func (_m *MockDBTX) QueryRowContext(_a0 context.Context, _a1 string, _a2 ...interface{}) *sql.Row
- type MockDBTX_ExecContext_Call
- func (_c *MockDBTX_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *MockDBTX_ExecContext_Call
- func (_c *MockDBTX_ExecContext_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_ExecContext_Call
- func (_c *MockDBTX_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *MockDBTX_ExecContext_Call
- type MockDBTX_Expecter
- func (_e *MockDBTX_Expecter) ExecContext(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_ExecContext_Call
- func (_e *MockDBTX_Expecter) PrepareContext(_a0 interface{}, _a1 interface{}) *MockDBTX_PrepareContext_Call
- func (_e *MockDBTX_Expecter) QueryContext(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_QueryContext_Call
- func (_e *MockDBTX_Expecter) QueryRowContext(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_QueryRowContext_Call
- type MockDBTX_PrepareContext_Call
- func (_c *MockDBTX_PrepareContext_Call) Return(_a0 *sql.Stmt, _a1 error) *MockDBTX_PrepareContext_Call
- func (_c *MockDBTX_PrepareContext_Call) Run(run func(_a0 context.Context, _a1 string)) *MockDBTX_PrepareContext_Call
- func (_c *MockDBTX_PrepareContext_Call) RunAndReturn(run func(context.Context, string) (*sql.Stmt, error)) *MockDBTX_PrepareContext_Call
- type MockDBTX_QueryContext_Call
- func (_c *MockDBTX_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *MockDBTX_QueryContext_Call
- func (_c *MockDBTX_QueryContext_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_QueryContext_Call
- func (_c *MockDBTX_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *MockDBTX_QueryContext_Call
- type MockDBTX_QueryRowContext_Call
- func (_c *MockDBTX_QueryRowContext_Call) Return(_a0 *sql.Row) *MockDBTX_QueryRowContext_Call
- func (_c *MockDBTX_QueryRowContext_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_QueryRowContext_Call
- func (_c *MockDBTX_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *MockDBTX_QueryRowContext_Call
- type MockQuerier
- func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
- func (_m *MockQuerier) GetCustomFunctionsBySchemas(ctx context.Context, db DBTX, schemas []string) ([]*GetCustomFunctionsBySchemasRow, error)
- func (_m *MockQuerier) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomTriggersBySchemaAndTablesParams) ([]*GetCustomTriggersBySchemaAndTablesRow, error)
- func (_m *MockQuerier) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error)
- func (_m *MockQuerier) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, ...) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)
- func (_m *MockQuerier) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, arg *GetIndicesBySchemasAndTablesParams) ([]*GetIndicesBySchemasAndTablesRow, error)
- func (_m *MockQuerier) GetMysqlRolePermissions(ctx context.Context, db DBTX) ([]*GetMysqlRolePermissionsRow, error)
- func (_m *MockQuerier) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)
- func (_m *MockQuerier) GetTableConstraintsBySchemas(ctx context.Context, db DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)
- type MockQuerier_Expecter
- func (_e *MockQuerier_Expecter) GetCustomFunctionsBySchemas(ctx interface{}, db interface{}, schemas interface{}) *MockQuerier_GetCustomFunctionsBySchemas_Call
- func (_e *MockQuerier_Expecter) GetCustomTriggersBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_e *MockQuerier_Expecter) GetDatabaseSchema(ctx interface{}, db interface{}) *MockQuerier_GetDatabaseSchema_Call
- func (_e *MockQuerier_Expecter) GetDatabaseTableSchemasBySchemasAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
- func (_e *MockQuerier_Expecter) GetIndicesBySchemasAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetIndicesBySchemasAndTables_Call
- func (_e *MockQuerier_Expecter) GetMysqlRolePermissions(ctx interface{}, db interface{}) *MockQuerier_GetMysqlRolePermissions_Call
- func (_e *MockQuerier_Expecter) GetTableConstraints(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetTableConstraints_Call
- func (_e *MockQuerier_Expecter) GetTableConstraintsBySchemas(ctx interface{}, db interface{}, schemas interface{}) *MockQuerier_GetTableConstraintsBySchemas_Call
- type MockQuerier_GetCustomFunctionsBySchemas_Call
- func (_c *MockQuerier_GetCustomFunctionsBySchemas_Call) Return(_a0 []*GetCustomFunctionsBySchemasRow, _a1 error) *MockQuerier_GetCustomFunctionsBySchemas_Call
- func (_c *MockQuerier_GetCustomFunctionsBySchemas_Call) Run(run func(ctx context.Context, db DBTX, schemas []string)) *MockQuerier_GetCustomFunctionsBySchemas_Call
- func (_c *MockQuerier_GetCustomFunctionsBySchemas_Call) RunAndReturn(...) *MockQuerier_GetCustomFunctionsBySchemas_Call
- type MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) Return(_a0 []*GetCustomTriggersBySchemaAndTablesRow, _a1 error) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) Run(...) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) RunAndReturn(...) *MockQuerier_GetCustomTriggersBySchemaAndTables_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 DBTX)) *MockQuerier_GetDatabaseSchema_Call
- func (_c *MockQuerier_GetDatabaseSchema_Call) RunAndReturn(run func(context.Context, DBTX) ([]*GetDatabaseSchemaRow, error)) *MockQuerier_GetDatabaseSchema_Call
- type MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
- func (_c *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) Return(_a0 []*GetDatabaseTableSchemasBySchemasAndTablesRow, _a1 error) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
- func (_c *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) Run(run func(ctx context.Context, db DBTX, ...)) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
- func (_c *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) RunAndReturn(...) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
- type MockQuerier_GetIndicesBySchemasAndTables_Call
- func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) Return(_a0 []*GetIndicesBySchemasAndTablesRow, _a1 error) *MockQuerier_GetIndicesBySchemasAndTables_Call
- func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) Run(...) *MockQuerier_GetIndicesBySchemasAndTables_Call
- func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) RunAndReturn(...) *MockQuerier_GetIndicesBySchemasAndTables_Call
- type MockQuerier_GetMysqlRolePermissions_Call
- func (_c *MockQuerier_GetMysqlRolePermissions_Call) Return(_a0 []*GetMysqlRolePermissionsRow, _a1 error) *MockQuerier_GetMysqlRolePermissions_Call
- func (_c *MockQuerier_GetMysqlRolePermissions_Call) Run(run func(ctx context.Context, db DBTX)) *MockQuerier_GetMysqlRolePermissions_Call
- func (_c *MockQuerier_GetMysqlRolePermissions_Call) RunAndReturn(run func(context.Context, DBTX) ([]*GetMysqlRolePermissionsRow, error)) *MockQuerier_GetMysqlRolePermissions_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 DBTX, schemas []string)) *MockQuerier_GetTableConstraintsBySchemas_Call
- func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) RunAndReturn(...) *MockQuerier_GetTableConstraintsBySchemas_Call
- type MockQuerier_GetTableConstraints_Call
- func (_c *MockQuerier_GetTableConstraints_Call) Return(_a0 []*GetTableConstraintsRow, _a1 error) *MockQuerier_GetTableConstraints_Call
- func (_c *MockQuerier_GetTableConstraints_Call) Run(run func(ctx context.Context, db DBTX, arg *GetTableConstraintsParams)) *MockQuerier_GetTableConstraints_Call
- func (_c *MockQuerier_GetTableConstraints_Call) RunAndReturn(...) *MockQuerier_GetTableConstraints_Call
- type Querier
- type Queries
- func (q *Queries) GetCustomFunctionsBySchemas(ctx context.Context, db DBTX, schemas []string) ([]*GetCustomFunctionsBySchemasRow, error)
- func (q *Queries) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomTriggersBySchemaAndTablesParams) ([]*GetCustomTriggersBySchemaAndTablesRow, error)
- func (q *Queries) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error)
- func (q *Queries) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, ...) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)
- func (q *Queries) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, arg *GetIndicesBySchemasAndTablesParams) ([]*GetIndicesBySchemasAndTablesRow, error)
- func (q *Queries) GetMysqlRolePermissions(ctx context.Context, db DBTX) ([]*GetMysqlRolePermissionsRow, error)
- func (q *Queries) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)
- func (q *Queries) GetTableConstraintsBySchemas(ctx context.Context, db DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminPrivilege ¶ added in v0.4.48
type DbPrivilege ¶ added in v0.4.48
type GetCustomFunctionsBySchemasRow ¶ added in v0.4.48
type GetCustomTriggersBySchemaAndTablesParams ¶ added in v0.4.48
type GetCustomTriggersBySchemaAndTablesRow ¶ added in v0.4.48
type GetDatabaseSchemaRow ¶
type GetDatabaseTableSchemasBySchemasAndTablesParams ¶ added in v0.4.48
type GetDatabaseTableSchemasBySchemasAndTablesRow ¶ added in v0.4.48
type GetDatabaseTableSchemasBySchemasAndTablesRow struct { SchemaName string TableName string ColumnName string DataType string ColumnDefault interface{} IsNullable int32 CharacterMaximumLength interface{} NumericPrecision interface{} NumericScale interface{} OrdinalPosition int64 IdentityGeneration sql.NullString GenerationExp interface{} AutoIncrementStartValue sql.NullInt64 }
type GetIndicesBySchemasAndTablesParams ¶ added in v0.4.48
type GetIndicesBySchemasAndTablesRow ¶ added in v0.4.48
type GetTableConstraintsBySchemasRow ¶ added in v0.4.48
type GetTableConstraintsBySchemasRow struct { SchemaName string TableName string ConstraintColumns json.RawMessage NotNullable json.RawMessage ConstraintName string ConstraintType string ReferencedSchemaName string ReferencedTableName string ReferencedColumnNames json.RawMessage UpdateRule sql.NullString DeleteRule sql.NullString CheckClause interface{} }
type GetTableConstraintsParams ¶ added in v0.4.48
type GetTableConstraintsRow ¶ added in v0.4.48
type GetTableConstraintsRow struct { SchemaName string TableName string ConstraintColumns json.RawMessage NotNullable json.RawMessage ConstraintName string ConstraintType string ReferencedSchemaName string ReferencedTableName string ReferencedColumnNames json.RawMessage UpdateRule sql.NullString DeleteRule sql.NullString CheckClause interface{} }
type MockDBTX ¶
MockDBTX is an autogenerated mock type for the DBTX type
func NewMockDBTX ¶
NewMockDBTX creates a new instance of MockDBTX. 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 (*MockDBTX) EXPECT ¶
func (_m *MockDBTX) EXPECT() *MockDBTX_Expecter
func (*MockDBTX) ExecContext ¶
func (_m *MockDBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: _a0, _a1, _a2
func (*MockDBTX) PrepareContext ¶
PrepareContext provides a mock function with given fields: _a0, _a1
type MockDBTX_ExecContext_Call ¶
MockDBTX_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'
func (*MockDBTX_ExecContext_Call) Return ¶
func (_c *MockDBTX_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *MockDBTX_ExecContext_Call
func (*MockDBTX_ExecContext_Call) Run ¶
func (_c *MockDBTX_ExecContext_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_ExecContext_Call
func (*MockDBTX_ExecContext_Call) RunAndReturn ¶
func (_c *MockDBTX_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *MockDBTX_ExecContext_Call
type MockDBTX_Expecter ¶
type MockDBTX_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDBTX_Expecter) ExecContext ¶
func (_e *MockDBTX_Expecter) ExecContext(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_ExecContext_Call
ExecContext is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 ...interface{}
func (*MockDBTX_Expecter) PrepareContext ¶
func (_e *MockDBTX_Expecter) PrepareContext(_a0 interface{}, _a1 interface{}) *MockDBTX_PrepareContext_Call
PrepareContext is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*MockDBTX_Expecter) QueryContext ¶
func (_e *MockDBTX_Expecter) QueryContext(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_QueryContext_Call
QueryContext is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 ...interface{}
func (*MockDBTX_Expecter) QueryRowContext ¶
func (_e *MockDBTX_Expecter) QueryRowContext(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_QueryRowContext_Call
QueryRowContext is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 ...interface{}
type MockDBTX_PrepareContext_Call ¶
MockDBTX_PrepareContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareContext'
func (*MockDBTX_PrepareContext_Call) Return ¶
func (_c *MockDBTX_PrepareContext_Call) Return(_a0 *sql.Stmt, _a1 error) *MockDBTX_PrepareContext_Call
func (*MockDBTX_PrepareContext_Call) Run ¶
func (_c *MockDBTX_PrepareContext_Call) Run(run func(_a0 context.Context, _a1 string)) *MockDBTX_PrepareContext_Call
func (*MockDBTX_PrepareContext_Call) RunAndReturn ¶
func (_c *MockDBTX_PrepareContext_Call) RunAndReturn(run func(context.Context, string) (*sql.Stmt, error)) *MockDBTX_PrepareContext_Call
type MockDBTX_QueryContext_Call ¶
MockDBTX_QueryContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryContext'
func (*MockDBTX_QueryContext_Call) Return ¶
func (_c *MockDBTX_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *MockDBTX_QueryContext_Call
func (*MockDBTX_QueryContext_Call) Run ¶
func (_c *MockDBTX_QueryContext_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_QueryContext_Call
func (*MockDBTX_QueryContext_Call) RunAndReturn ¶
func (_c *MockDBTX_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *MockDBTX_QueryContext_Call
type MockDBTX_QueryRowContext_Call ¶
MockDBTX_QueryRowContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRowContext'
func (*MockDBTX_QueryRowContext_Call) Return ¶
func (_c *MockDBTX_QueryRowContext_Call) Return(_a0 *sql.Row) *MockDBTX_QueryRowContext_Call
func (*MockDBTX_QueryRowContext_Call) Run ¶
func (_c *MockDBTX_QueryRowContext_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_QueryRowContext_Call
func (*MockDBTX_QueryRowContext_Call) RunAndReturn ¶
func (_c *MockDBTX_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *MockDBTX_QueryRowContext_Call
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) GetCustomFunctionsBySchemas ¶ added in v0.4.48
func (_m *MockQuerier) GetCustomFunctionsBySchemas(ctx context.Context, db DBTX, schemas []string) ([]*GetCustomFunctionsBySchemasRow, error)
GetCustomFunctionsBySchemas provides a mock function with given fields: ctx, db, schemas
func (*MockQuerier) GetCustomTriggersBySchemaAndTables ¶ added in v0.4.48
func (_m *MockQuerier) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomTriggersBySchemaAndTablesParams) ([]*GetCustomTriggersBySchemaAndTablesRow, error)
GetCustomTriggersBySchemaAndTables provides a mock function with given fields: ctx, db, arg
func (*MockQuerier) GetDatabaseSchema ¶
func (_m *MockQuerier) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error)
GetDatabaseSchema provides a mock function with given fields: ctx, db
func (*MockQuerier) GetDatabaseTableSchemasBySchemasAndTables ¶ added in v0.4.48
func (_m *MockQuerier) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemasBySchemasAndTablesParams) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)
GetDatabaseTableSchemasBySchemasAndTables provides a mock function with given fields: ctx, db, arg
func (*MockQuerier) GetIndicesBySchemasAndTables ¶ added in v0.4.48
func (_m *MockQuerier) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, arg *GetIndicesBySchemasAndTablesParams) ([]*GetIndicesBySchemasAndTablesRow, error)
GetIndicesBySchemasAndTables provides a mock function with given fields: ctx, db, arg
func (*MockQuerier) GetMysqlRolePermissions ¶
func (_m *MockQuerier) GetMysqlRolePermissions(ctx context.Context, db DBTX) ([]*GetMysqlRolePermissionsRow, error)
GetMysqlRolePermissions provides a mock function with given fields: ctx, db
func (*MockQuerier) GetTableConstraints ¶ added in v0.4.48
func (_m *MockQuerier) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)
GetTableConstraints provides a mock function with given fields: ctx, db, arg
func (*MockQuerier) GetTableConstraintsBySchemas ¶ added in v0.4.48
func (_m *MockQuerier) GetTableConstraintsBySchemas(ctx context.Context, db 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) GetCustomFunctionsBySchemas ¶ added in v0.4.48
func (_e *MockQuerier_Expecter) GetCustomFunctionsBySchemas(ctx interface{}, db interface{}, schemas interface{}) *MockQuerier_GetCustomFunctionsBySchemas_Call
GetCustomFunctionsBySchemas is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- schemas []string
func (*MockQuerier_Expecter) GetCustomTriggersBySchemaAndTables ¶ added in v0.4.48
func (_e *MockQuerier_Expecter) GetCustomTriggersBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
GetCustomTriggersBySchemaAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetCustomTriggersBySchemaAndTablesParams
func (*MockQuerier_Expecter) GetDatabaseSchema ¶
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 DBTX
func (*MockQuerier_Expecter) GetDatabaseTableSchemasBySchemasAndTables ¶ added in v0.4.48
func (_e *MockQuerier_Expecter) GetDatabaseTableSchemasBySchemasAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
GetDatabaseTableSchemasBySchemasAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetDatabaseTableSchemasBySchemasAndTablesParams
func (*MockQuerier_Expecter) GetIndicesBySchemasAndTables ¶ added in v0.4.48
func (_e *MockQuerier_Expecter) GetIndicesBySchemasAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetIndicesBySchemasAndTables_Call
GetIndicesBySchemasAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetIndicesBySchemasAndTablesParams
func (*MockQuerier_Expecter) GetMysqlRolePermissions ¶
func (_e *MockQuerier_Expecter) GetMysqlRolePermissions(ctx interface{}, db interface{}) *MockQuerier_GetMysqlRolePermissions_Call
GetMysqlRolePermissions is a helper method to define mock.On call
- ctx context.Context
- db DBTX
func (*MockQuerier_Expecter) GetTableConstraints ¶ added in v0.4.48
func (_e *MockQuerier_Expecter) GetTableConstraints(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetTableConstraints_Call
GetTableConstraints is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetTableConstraintsParams
func (*MockQuerier_Expecter) GetTableConstraintsBySchemas ¶ added in v0.4.48
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 DBTX
- schemas []string
type MockQuerier_GetCustomFunctionsBySchemas_Call ¶ added in v0.4.48
MockQuerier_GetCustomFunctionsBySchemas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCustomFunctionsBySchemas'
func (*MockQuerier_GetCustomFunctionsBySchemas_Call) Return ¶ added in v0.4.48
func (_c *MockQuerier_GetCustomFunctionsBySchemas_Call) Return(_a0 []*GetCustomFunctionsBySchemasRow, _a1 error) *MockQuerier_GetCustomFunctionsBySchemas_Call
func (*MockQuerier_GetCustomFunctionsBySchemas_Call) Run ¶ added in v0.4.48
func (_c *MockQuerier_GetCustomFunctionsBySchemas_Call) Run(run func(ctx context.Context, db DBTX, schemas []string)) *MockQuerier_GetCustomFunctionsBySchemas_Call
func (*MockQuerier_GetCustomFunctionsBySchemas_Call) RunAndReturn ¶ added in v0.4.48
func (_c *MockQuerier_GetCustomFunctionsBySchemas_Call) RunAndReturn(run func(context.Context, DBTX, []string) ([]*GetCustomFunctionsBySchemasRow, error)) *MockQuerier_GetCustomFunctionsBySchemas_Call
type MockQuerier_GetCustomTriggersBySchemaAndTables_Call ¶ added in v0.4.48
MockQuerier_GetCustomTriggersBySchemaAndTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCustomTriggersBySchemaAndTables'
func (*MockQuerier_GetCustomTriggersBySchemaAndTables_Call) Run ¶ added in v0.4.48
func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) Run(run func(ctx context.Context, db DBTX, arg *GetCustomTriggersBySchemaAndTablesParams)) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
func (*MockQuerier_GetCustomTriggersBySchemaAndTables_Call) RunAndReturn ¶ added in v0.4.48
func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) RunAndReturn(run func(context.Context, DBTX, *GetCustomTriggersBySchemaAndTablesParams) ([]*GetCustomTriggersBySchemaAndTablesRow, error)) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
type MockQuerier_GetDatabaseSchema_Call ¶
MockQuerier_GetDatabaseSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatabaseSchema'
func (*MockQuerier_GetDatabaseSchema_Call) Return ¶
func (_c *MockQuerier_GetDatabaseSchema_Call) Return(_a0 []*GetDatabaseSchemaRow, _a1 error) *MockQuerier_GetDatabaseSchema_Call
func (*MockQuerier_GetDatabaseSchema_Call) Run ¶
func (_c *MockQuerier_GetDatabaseSchema_Call) Run(run func(ctx context.Context, db DBTX)) *MockQuerier_GetDatabaseSchema_Call
func (*MockQuerier_GetDatabaseSchema_Call) RunAndReturn ¶
func (_c *MockQuerier_GetDatabaseSchema_Call) RunAndReturn(run func(context.Context, DBTX) ([]*GetDatabaseSchemaRow, error)) *MockQuerier_GetDatabaseSchema_Call
type MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call ¶ added in v0.4.48
MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatabaseTableSchemasBySchemasAndTables'
func (*MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) Run ¶ added in v0.4.48
func (_c *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) Run(run func(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemasBySchemasAndTablesParams)) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
func (*MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) RunAndReturn ¶ added in v0.4.48
type MockQuerier_GetIndicesBySchemasAndTables_Call ¶ added in v0.4.48
MockQuerier_GetIndicesBySchemasAndTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndicesBySchemasAndTables'
func (*MockQuerier_GetIndicesBySchemasAndTables_Call) Return ¶ added in v0.4.48
func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) Return(_a0 []*GetIndicesBySchemasAndTablesRow, _a1 error) *MockQuerier_GetIndicesBySchemasAndTables_Call
func (*MockQuerier_GetIndicesBySchemasAndTables_Call) Run ¶ added in v0.4.48
func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) Run(run func(ctx context.Context, db DBTX, arg *GetIndicesBySchemasAndTablesParams)) *MockQuerier_GetIndicesBySchemasAndTables_Call
func (*MockQuerier_GetIndicesBySchemasAndTables_Call) RunAndReturn ¶ added in v0.4.48
func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) RunAndReturn(run func(context.Context, DBTX, *GetIndicesBySchemasAndTablesParams) ([]*GetIndicesBySchemasAndTablesRow, error)) *MockQuerier_GetIndicesBySchemasAndTables_Call
type MockQuerier_GetMysqlRolePermissions_Call ¶
MockQuerier_GetMysqlRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMysqlRolePermissions'
func (*MockQuerier_GetMysqlRolePermissions_Call) Return ¶
func (_c *MockQuerier_GetMysqlRolePermissions_Call) Return(_a0 []*GetMysqlRolePermissionsRow, _a1 error) *MockQuerier_GetMysqlRolePermissions_Call
func (*MockQuerier_GetMysqlRolePermissions_Call) Run ¶
func (_c *MockQuerier_GetMysqlRolePermissions_Call) Run(run func(ctx context.Context, db DBTX)) *MockQuerier_GetMysqlRolePermissions_Call
func (*MockQuerier_GetMysqlRolePermissions_Call) RunAndReturn ¶
func (_c *MockQuerier_GetMysqlRolePermissions_Call) RunAndReturn(run func(context.Context, DBTX) ([]*GetMysqlRolePermissionsRow, error)) *MockQuerier_GetMysqlRolePermissions_Call
type MockQuerier_GetTableConstraintsBySchemas_Call ¶ added in v0.4.48
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.48
func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) Return(_a0 []*GetTableConstraintsBySchemasRow, _a1 error) *MockQuerier_GetTableConstraintsBySchemas_Call
func (*MockQuerier_GetTableConstraintsBySchemas_Call) Run ¶ added in v0.4.48
func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) Run(run func(ctx context.Context, db DBTX, schemas []string)) *MockQuerier_GetTableConstraintsBySchemas_Call
func (*MockQuerier_GetTableConstraintsBySchemas_Call) RunAndReturn ¶ added in v0.4.48
func (_c *MockQuerier_GetTableConstraintsBySchemas_Call) RunAndReturn(run func(context.Context, DBTX, []string) ([]*GetTableConstraintsBySchemasRow, error)) *MockQuerier_GetTableConstraintsBySchemas_Call
type MockQuerier_GetTableConstraints_Call ¶ added in v0.4.48
MockQuerier_GetTableConstraints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTableConstraints'
func (*MockQuerier_GetTableConstraints_Call) Return ¶ added in v0.4.48
func (_c *MockQuerier_GetTableConstraints_Call) Return(_a0 []*GetTableConstraintsRow, _a1 error) *MockQuerier_GetTableConstraints_Call
func (*MockQuerier_GetTableConstraints_Call) Run ¶ added in v0.4.48
func (_c *MockQuerier_GetTableConstraints_Call) Run(run func(ctx context.Context, db DBTX, arg *GetTableConstraintsParams)) *MockQuerier_GetTableConstraints_Call
func (*MockQuerier_GetTableConstraints_Call) RunAndReturn ¶ added in v0.4.48
func (_c *MockQuerier_GetTableConstraints_Call) RunAndReturn(run func(context.Context, DBTX, *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)) *MockQuerier_GetTableConstraints_Call
type Querier ¶
type Querier interface { GetCustomFunctionsBySchemas(ctx context.Context, db DBTX, schemas []string) ([]*GetCustomFunctionsBySchemasRow, error) // sqlc is broken for mysql so can't do CONCAT(EVENT_OBJECT_SCHEMA, '.', EVENT_OBJECT_TABLE) IN (sqlc.slice('schematables')) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomTriggersBySchemaAndTablesParams) ([]*GetCustomTriggersBySchemaAndTablesRow, error) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemasBySchemasAndTablesParams) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, arg *GetIndicesBySchemasAndTablesParams) ([]*GetIndicesBySchemasAndTablesRow, error) GetMysqlRolePermissions(ctx context.Context, db DBTX) ([]*GetMysqlRolePermissionsRow, error) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error) GetTableConstraintsBySchemas(ctx context.Context, db DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error) }
type Queries ¶
type Queries struct { }
func (*Queries) GetCustomFunctionsBySchemas ¶ added in v0.4.48
func (*Queries) GetCustomTriggersBySchemaAndTables ¶ added in v0.4.48
func (q *Queries) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomTriggersBySchemaAndTablesParams) ([]*GetCustomTriggersBySchemaAndTablesRow, error)
sqlc is broken for mysql so can't do CONCAT(EVENT_OBJECT_SCHEMA, '.', EVENT_OBJECT_TABLE) IN (sqlc.slice('schematables'))
func (*Queries) GetDatabaseSchema ¶
func (*Queries) GetDatabaseTableSchemasBySchemasAndTables ¶ added in v0.4.48
func (q *Queries) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemasBySchemasAndTablesParams) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)
func (*Queries) GetIndicesBySchemasAndTables ¶ added in v0.4.48
func (q *Queries) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, arg *GetIndicesBySchemasAndTablesParams) ([]*GetIndicesBySchemasAndTablesRow, error)
func (*Queries) GetMysqlRolePermissions ¶
func (*Queries) GetTableConstraints ¶ added in v0.4.48
func (q *Queries) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)