Documentation
¶
Index ¶
- type DBTX
- type GetDatabaseSchemaRow
- type GetDatabaseTableSchemaParams
- type GetDatabaseTableSchemaRow
- type GetDatabaseTableSchemasBySchemasAndTablesRow
- type GetIndicesBySchemasAndTablesRow
- type GetPostgresRolePermissionsRow
- type GetTableConstraintsBySchemaRow
- type GetTableConstraintsParams
- type GetTableConstraintsRow
- type MockDBTX
- func (_m *MockDBTX) EXPECT() *MockDBTX_Expecter
- func (_m *MockDBTX) Exec(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgconn.CommandTag, error)
- func (_m *MockDBTX) Query(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgx.Rows, error)
- func (_m *MockDBTX) QueryRow(_a0 context.Context, _a1 string, _a2 ...interface{}) pgx.Row
- type MockDBTX_Exec_Call
- func (_c *MockDBTX_Exec_Call) Return(_a0 pgconn.CommandTag, _a1 error) *MockDBTX_Exec_Call
- func (_c *MockDBTX_Exec_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_Exec_Call
- func (_c *MockDBTX_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockDBTX_Exec_Call
- type MockDBTX_Expecter
- func (_e *MockDBTX_Expecter) Exec(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_Exec_Call
- func (_e *MockDBTX_Expecter) Query(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_Query_Call
- func (_e *MockDBTX_Expecter) QueryRow(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_QueryRow_Call
- type MockDBTX_QueryRow_Call
- func (_c *MockDBTX_QueryRow_Call) Return(_a0 pgx.Row) *MockDBTX_QueryRow_Call
- func (_c *MockDBTX_QueryRow_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_QueryRow_Call
- func (_c *MockDBTX_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockDBTX_QueryRow_Call
- type MockDBTX_Query_Call
- func (_c *MockDBTX_Query_Call) Return(_a0 pgx.Rows, _a1 error) *MockDBTX_Query_Call
- func (_c *MockDBTX_Query_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_Query_Call
- func (_c *MockDBTX_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockDBTX_Query_Call
- type MockQuerier
- func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
- func (_m *MockQuerier) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error)
- func (_m *MockQuerier) GetDatabaseTableSchema(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemaParams) ([]*GetDatabaseTableSchemaRow, error)
- func (_m *MockQuerier) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)
- func (_m *MockQuerier) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetIndicesBySchemasAndTablesRow, error)
- func (_m *MockQuerier) GetPostgresRolePermissions(ctx context.Context, db DBTX, role interface{}) ([]*GetPostgresRolePermissionsRow, error)
- func (_m *MockQuerier) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)
- func (_m *MockQuerier) GetTableConstraintsBySchema(ctx context.Context, db DBTX, schema []string) ([]*GetTableConstraintsBySchemaRow, error)
- type MockQuerier_Expecter
- func (_e *MockQuerier_Expecter) GetDatabaseSchema(ctx interface{}, db interface{}) *MockQuerier_GetDatabaseSchema_Call
- func (_e *MockQuerier_Expecter) GetDatabaseTableSchema(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetDatabaseTableSchema_Call
- func (_e *MockQuerier_Expecter) GetDatabaseTableSchemasBySchemasAndTables(ctx interface{}, db interface{}, schematables interface{}) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
- func (_e *MockQuerier_Expecter) GetIndicesBySchemasAndTables(ctx interface{}, db interface{}, schematables interface{}) *MockQuerier_GetIndicesBySchemasAndTables_Call
- func (_e *MockQuerier_Expecter) GetPostgresRolePermissions(ctx interface{}, db interface{}, role interface{}) *MockQuerier_GetPostgresRolePermissions_Call
- func (_e *MockQuerier_Expecter) GetTableConstraints(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetTableConstraints_Call
- func (_e *MockQuerier_Expecter) GetTableConstraintsBySchema(ctx interface{}, db interface{}, schema interface{}) *MockQuerier_GetTableConstraintsBySchema_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_GetDatabaseTableSchema_Call
- func (_c *MockQuerier_GetDatabaseTableSchema_Call) Return(_a0 []*GetDatabaseTableSchemaRow, _a1 error) *MockQuerier_GetDatabaseTableSchema_Call
- func (_c *MockQuerier_GetDatabaseTableSchema_Call) Run(run func(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemaParams)) *MockQuerier_GetDatabaseTableSchema_Call
- func (_c *MockQuerier_GetDatabaseTableSchema_Call) RunAndReturn(...) *MockQuerier_GetDatabaseTableSchema_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, schematables []string)) *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(run func(ctx context.Context, db DBTX, schematables []string)) *MockQuerier_GetIndicesBySchemasAndTables_Call
- func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) RunAndReturn(...) *MockQuerier_GetIndicesBySchemasAndTables_Call
- type MockQuerier_GetPostgresRolePermissions_Call
- func (_c *MockQuerier_GetPostgresRolePermissions_Call) Return(_a0 []*GetPostgresRolePermissionsRow, _a1 error) *MockQuerier_GetPostgresRolePermissions_Call
- func (_c *MockQuerier_GetPostgresRolePermissions_Call) Run(run func(ctx context.Context, db DBTX, role interface{})) *MockQuerier_GetPostgresRolePermissions_Call
- func (_c *MockQuerier_GetPostgresRolePermissions_Call) RunAndReturn(...) *MockQuerier_GetPostgresRolePermissions_Call
- type MockQuerier_GetTableConstraintsBySchema_Call
- func (_c *MockQuerier_GetTableConstraintsBySchema_Call) Return(_a0 []*GetTableConstraintsBySchemaRow, _a1 error) *MockQuerier_GetTableConstraintsBySchema_Call
- func (_c *MockQuerier_GetTableConstraintsBySchema_Call) Run(run func(ctx context.Context, db DBTX, schema []string)) *MockQuerier_GetTableConstraintsBySchema_Call
- func (_c *MockQuerier_GetTableConstraintsBySchema_Call) RunAndReturn(...) *MockQuerier_GetTableConstraintsBySchema_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) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error)
- func (q *Queries) GetDatabaseTableSchema(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemaParams) ([]*GetDatabaseTableSchemaRow, error)
- func (q *Queries) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)
- func (q *Queries) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetIndicesBySchemasAndTablesRow, error)
- func (q *Queries) GetPostgresRolePermissions(ctx context.Context, db DBTX, role interface{}) ([]*GetPostgresRolePermissionsRow, error)
- func (q *Queries) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)
- func (q *Queries) GetTableConstraintsBySchema(ctx context.Context, db DBTX, schema []string) ([]*GetTableConstraintsBySchemaRow, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetDatabaseSchemaRow ¶
type GetDatabaseTableSchemasBySchemasAndTablesRow ¶ added in v0.4.24
type GetIndicesBySchemasAndTablesRow ¶ added in v0.4.24
type GetTableConstraintsRow ¶
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) Exec ¶
func (_m *MockDBTX) Exec(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgconn.CommandTag, error)
Exec provides a mock function with given fields: _a0, _a1, _a2
type MockDBTX_Exec_Call ¶
MockDBTX_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockDBTX_Exec_Call) Return ¶
func (_c *MockDBTX_Exec_Call) Return(_a0 pgconn.CommandTag, _a1 error) *MockDBTX_Exec_Call
func (*MockDBTX_Exec_Call) Run ¶
func (_c *MockDBTX_Exec_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_Exec_Call
func (*MockDBTX_Exec_Call) RunAndReturn ¶
func (_c *MockDBTX_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockDBTX_Exec_Call
type MockDBTX_Expecter ¶
type MockDBTX_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDBTX_Expecter) Exec ¶
func (_e *MockDBTX_Expecter) Exec(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_Exec_Call
Exec is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 ...interface{}
func (*MockDBTX_Expecter) Query ¶
func (_e *MockDBTX_Expecter) Query(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_Query_Call
Query is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 ...interface{}
func (*MockDBTX_Expecter) QueryRow ¶
func (_e *MockDBTX_Expecter) QueryRow(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDBTX_QueryRow_Call
QueryRow is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 ...interface{}
type MockDBTX_QueryRow_Call ¶
MockDBTX_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'
func (*MockDBTX_QueryRow_Call) Return ¶
func (_c *MockDBTX_QueryRow_Call) Return(_a0 pgx.Row) *MockDBTX_QueryRow_Call
func (*MockDBTX_QueryRow_Call) Run ¶
func (_c *MockDBTX_QueryRow_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_QueryRow_Call
func (*MockDBTX_QueryRow_Call) RunAndReturn ¶
func (_c *MockDBTX_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockDBTX_QueryRow_Call
type MockDBTX_Query_Call ¶
MockDBTX_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*MockDBTX_Query_Call) Return ¶
func (_c *MockDBTX_Query_Call) Return(_a0 pgx.Rows, _a1 error) *MockDBTX_Query_Call
func (*MockDBTX_Query_Call) Run ¶
func (_c *MockDBTX_Query_Call) Run(run func(_a0 context.Context, _a1 string, _a2 ...interface{})) *MockDBTX_Query_Call
func (*MockDBTX_Query_Call) RunAndReturn ¶
func (_c *MockDBTX_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockDBTX_Query_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) GetDatabaseSchema ¶
func (_m *MockQuerier) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error)
GetDatabaseSchema provides a mock function with given fields: ctx, db
func (*MockQuerier) GetDatabaseTableSchema ¶
func (_m *MockQuerier) GetDatabaseTableSchema(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemaParams) ([]*GetDatabaseTableSchemaRow, error)
GetDatabaseTableSchema provides a mock function with given fields: ctx, db, arg
func (*MockQuerier) GetDatabaseTableSchemasBySchemasAndTables ¶ added in v0.4.24
func (_m *MockQuerier) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)
GetDatabaseTableSchemasBySchemasAndTables provides a mock function with given fields: ctx, db, schematables
func (*MockQuerier) GetIndicesBySchemasAndTables ¶ added in v0.4.24
func (_m *MockQuerier) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetIndicesBySchemasAndTablesRow, error)
GetIndicesBySchemasAndTables provides a mock function with given fields: ctx, db, schematables
func (*MockQuerier) GetPostgresRolePermissions ¶
func (_m *MockQuerier) GetPostgresRolePermissions(ctx context.Context, db DBTX, role interface{}) ([]*GetPostgresRolePermissionsRow, error)
GetPostgresRolePermissions provides a mock function with given fields: ctx, db, role
func (*MockQuerier) GetTableConstraints ¶
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) GetTableConstraintsBySchema ¶
func (_m *MockQuerier) GetTableConstraintsBySchema(ctx context.Context, db DBTX, schema []string) ([]*GetTableConstraintsBySchemaRow, error)
GetTableConstraintsBySchema provides a mock function with given fields: ctx, db, schema
type MockQuerier_Expecter ¶
type MockQuerier_Expecter struct {
// contains filtered or unexported fields
}
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) GetDatabaseTableSchema ¶
func (_e *MockQuerier_Expecter) GetDatabaseTableSchema(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetDatabaseTableSchema_Call
GetDatabaseTableSchema is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetDatabaseTableSchemaParams
func (*MockQuerier_Expecter) GetDatabaseTableSchemasBySchemasAndTables ¶ added in v0.4.24
func (_e *MockQuerier_Expecter) GetDatabaseTableSchemasBySchemasAndTables(ctx interface{}, db interface{}, schematables interface{}) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
GetDatabaseTableSchemasBySchemasAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- schematables []string
func (*MockQuerier_Expecter) GetIndicesBySchemasAndTables ¶ added in v0.4.24
func (_e *MockQuerier_Expecter) GetIndicesBySchemasAndTables(ctx interface{}, db interface{}, schematables interface{}) *MockQuerier_GetIndicesBySchemasAndTables_Call
GetIndicesBySchemasAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- schematables []string
func (*MockQuerier_Expecter) GetPostgresRolePermissions ¶
func (_e *MockQuerier_Expecter) GetPostgresRolePermissions(ctx interface{}, db interface{}, role interface{}) *MockQuerier_GetPostgresRolePermissions_Call
GetPostgresRolePermissions is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- role interface{}
func (*MockQuerier_Expecter) GetTableConstraints ¶
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) GetTableConstraintsBySchema ¶
func (_e *MockQuerier_Expecter) GetTableConstraintsBySchema(ctx interface{}, db interface{}, schema interface{}) *MockQuerier_GetTableConstraintsBySchema_Call
GetTableConstraintsBySchema is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- schema []string
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_GetDatabaseTableSchema_Call ¶
MockQuerier_GetDatabaseTableSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatabaseTableSchema'
func (*MockQuerier_GetDatabaseTableSchema_Call) Return ¶
func (_c *MockQuerier_GetDatabaseTableSchema_Call) Return(_a0 []*GetDatabaseTableSchemaRow, _a1 error) *MockQuerier_GetDatabaseTableSchema_Call
func (*MockQuerier_GetDatabaseTableSchema_Call) Run ¶
func (_c *MockQuerier_GetDatabaseTableSchema_Call) Run(run func(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemaParams)) *MockQuerier_GetDatabaseTableSchema_Call
func (*MockQuerier_GetDatabaseTableSchema_Call) RunAndReturn ¶
func (_c *MockQuerier_GetDatabaseTableSchema_Call) RunAndReturn(run func(context.Context, DBTX, *GetDatabaseTableSchemaParams) ([]*GetDatabaseTableSchemaRow, error)) *MockQuerier_GetDatabaseTableSchema_Call
type MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call ¶ added in v0.4.24
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.24
func (_c *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) Run(run func(ctx context.Context, db DBTX, schematables []string)) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
func (*MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) RunAndReturn ¶ added in v0.4.24
func (_c *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call) RunAndReturn(run func(context.Context, DBTX, []string) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error)) *MockQuerier_GetDatabaseTableSchemasBySchemasAndTables_Call
type MockQuerier_GetIndicesBySchemasAndTables_Call ¶ added in v0.4.24
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.24
func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) Return(_a0 []*GetIndicesBySchemasAndTablesRow, _a1 error) *MockQuerier_GetIndicesBySchemasAndTables_Call
func (*MockQuerier_GetIndicesBySchemasAndTables_Call) Run ¶ added in v0.4.24
func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) Run(run func(ctx context.Context, db DBTX, schematables []string)) *MockQuerier_GetIndicesBySchemasAndTables_Call
func (*MockQuerier_GetIndicesBySchemasAndTables_Call) RunAndReturn ¶ added in v0.4.24
func (_c *MockQuerier_GetIndicesBySchemasAndTables_Call) RunAndReturn(run func(context.Context, DBTX, []string) ([]*GetIndicesBySchemasAndTablesRow, error)) *MockQuerier_GetIndicesBySchemasAndTables_Call
type MockQuerier_GetPostgresRolePermissions_Call ¶
MockQuerier_GetPostgresRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPostgresRolePermissions'
func (*MockQuerier_GetPostgresRolePermissions_Call) Return ¶
func (_c *MockQuerier_GetPostgresRolePermissions_Call) Return(_a0 []*GetPostgresRolePermissionsRow, _a1 error) *MockQuerier_GetPostgresRolePermissions_Call
func (*MockQuerier_GetPostgresRolePermissions_Call) Run ¶
func (_c *MockQuerier_GetPostgresRolePermissions_Call) Run(run func(ctx context.Context, db DBTX, role interface{})) *MockQuerier_GetPostgresRolePermissions_Call
func (*MockQuerier_GetPostgresRolePermissions_Call) RunAndReturn ¶
func (_c *MockQuerier_GetPostgresRolePermissions_Call) RunAndReturn(run func(context.Context, DBTX, interface{}) ([]*GetPostgresRolePermissionsRow, error)) *MockQuerier_GetPostgresRolePermissions_Call
type MockQuerier_GetTableConstraintsBySchema_Call ¶
MockQuerier_GetTableConstraintsBySchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTableConstraintsBySchema'
func (*MockQuerier_GetTableConstraintsBySchema_Call) Return ¶
func (_c *MockQuerier_GetTableConstraintsBySchema_Call) Return(_a0 []*GetTableConstraintsBySchemaRow, _a1 error) *MockQuerier_GetTableConstraintsBySchema_Call
func (*MockQuerier_GetTableConstraintsBySchema_Call) Run ¶
func (_c *MockQuerier_GetTableConstraintsBySchema_Call) Run(run func(ctx context.Context, db DBTX, schema []string)) *MockQuerier_GetTableConstraintsBySchema_Call
func (*MockQuerier_GetTableConstraintsBySchema_Call) RunAndReturn ¶
func (_c *MockQuerier_GetTableConstraintsBySchema_Call) RunAndReturn(run func(context.Context, DBTX, []string) ([]*GetTableConstraintsBySchemaRow, error)) *MockQuerier_GetTableConstraintsBySchema_Call
type MockQuerier_GetTableConstraints_Call ¶
MockQuerier_GetTableConstraints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTableConstraints'
func (*MockQuerier_GetTableConstraints_Call) Return ¶
func (_c *MockQuerier_GetTableConstraints_Call) Return(_a0 []*GetTableConstraintsRow, _a1 error) *MockQuerier_GetTableConstraints_Call
func (*MockQuerier_GetTableConstraints_Call) Run ¶
func (_c *MockQuerier_GetTableConstraints_Call) Run(run func(ctx context.Context, db DBTX, arg *GetTableConstraintsParams)) *MockQuerier_GetTableConstraints_Call
func (*MockQuerier_GetTableConstraints_Call) RunAndReturn ¶
func (_c *MockQuerier_GetTableConstraints_Call) RunAndReturn(run func(context.Context, DBTX, *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)) *MockQuerier_GetTableConstraints_Call
type Querier ¶
type Querier interface { GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, error) GetDatabaseTableSchema(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemaParams) ([]*GetDatabaseTableSchemaRow, error) GetDatabaseTableSchemasBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetDatabaseTableSchemasBySchemasAndTablesRow, error) GetIndicesBySchemasAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetIndicesBySchemasAndTablesRow, error) GetPostgresRolePermissions(ctx context.Context, db DBTX, role interface{}) ([]*GetPostgresRolePermissionsRow, error) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error) GetTableConstraintsBySchema(ctx context.Context, db DBTX, schema []string) ([]*GetTableConstraintsBySchemaRow, error) }
type Queries ¶
type Queries struct { }
func (*Queries) GetDatabaseSchema ¶
func (*Queries) GetDatabaseTableSchema ¶
func (q *Queries) GetDatabaseTableSchema(ctx context.Context, db DBTX, arg *GetDatabaseTableSchemaParams) ([]*GetDatabaseTableSchemaRow, error)
func (*Queries) GetDatabaseTableSchemasBySchemasAndTables ¶ added in v0.4.24
func (*Queries) GetIndicesBySchemasAndTables ¶ added in v0.4.24
func (*Queries) GetPostgresRolePermissions ¶
func (*Queries) GetTableConstraints ¶
func (q *Queries) GetTableConstraints(ctx context.Context, db DBTX, arg *GetTableConstraintsParams) ([]*GetTableConstraintsRow, error)