Documentation ¶
Index ¶
- type DBTX
- type GetCustomFunctionsBySchemaAndTablesParams
- type GetCustomFunctionsBySchemaAndTablesRow
- type GetCustomSequencesBySchemaAndTablesParams
- type GetCustomSequencesBySchemaAndTablesRow
- type GetCustomTriggersBySchemaAndTablesRow
- type GetDataTypesBySchemaAndTablesParams
- type GetDataTypesBySchemaAndTablesRow
- type GetDatabaseSchemaRow
- 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) GetCustomFunctionsBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomFunctionsBySchemaAndTablesParams) ([]*GetCustomFunctionsBySchemaAndTablesRow, error)
- func (_m *MockQuerier) GetCustomSequencesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomSequencesBySchemaAndTablesParams) ([]*GetCustomSequencesBySchemaAndTablesRow, error)
- func (_m *MockQuerier) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetCustomTriggersBySchemaAndTablesRow, error)
- func (_m *MockQuerier) GetDataTypesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetDataTypesBySchemaAndTablesParams) ([]*GetDataTypesBySchemaAndTablesRow, error)
- func (_m *MockQuerier) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, 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) GetCustomFunctionsBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call
- func (_e *MockQuerier_Expecter) GetCustomSequencesBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetCustomSequencesBySchemaAndTables_Call
- func (_e *MockQuerier_Expecter) GetCustomTriggersBySchemaAndTables(ctx interface{}, db interface{}, schematables interface{}) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_e *MockQuerier_Expecter) GetDataTypesBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetDataTypesBySchemaAndTables_Call
- func (_e *MockQuerier_Expecter) GetDatabaseSchema(ctx interface{}, db interface{}) *MockQuerier_GetDatabaseSchema_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_GetCustomFunctionsBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call) Return(_a0 []*GetCustomFunctionsBySchemaAndTablesRow, _a1 error) *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call) Run(...) *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call) RunAndReturn(...) *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call
- type MockQuerier_GetCustomSequencesBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomSequencesBySchemaAndTables_Call) Return(_a0 []*GetCustomSequencesBySchemaAndTablesRow, _a1 error) *MockQuerier_GetCustomSequencesBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomSequencesBySchemaAndTables_Call) Run(...) *MockQuerier_GetCustomSequencesBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomSequencesBySchemaAndTables_Call) RunAndReturn(...) *MockQuerier_GetCustomSequencesBySchemaAndTables_Call
- type MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) Return(_a0 []*GetCustomTriggersBySchemaAndTablesRow, _a1 error) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) Run(run func(ctx context.Context, db DBTX, schematables []string)) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) RunAndReturn(...) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
- type MockQuerier_GetDataTypesBySchemaAndTables_Call
- func (_c *MockQuerier_GetDataTypesBySchemaAndTables_Call) Return(_a0 []*GetDataTypesBySchemaAndTablesRow, _a1 error) *MockQuerier_GetDataTypesBySchemaAndTables_Call
- func (_c *MockQuerier_GetDataTypesBySchemaAndTables_Call) Run(...) *MockQuerier_GetDataTypesBySchemaAndTables_Call
- func (_c *MockQuerier_GetDataTypesBySchemaAndTables_Call) RunAndReturn(...) *MockQuerier_GetDataTypesBySchemaAndTables_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, 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) GetCustomFunctionsBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomFunctionsBySchemaAndTablesParams) ([]*GetCustomFunctionsBySchemaAndTablesRow, error)
- func (q *Queries) GetCustomSequencesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomSequencesBySchemaAndTablesParams) ([]*GetCustomSequencesBySchemaAndTablesRow, error)
- func (q *Queries) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetCustomTriggersBySchemaAndTablesRow, error)
- func (q *Queries) GetDataTypesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetDataTypesBySchemaAndTablesParams) ([]*GetDataTypesBySchemaAndTablesRow, error)
- func (q *Queries) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, 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 GetCustomFunctionsBySchemaAndTablesParams ¶ added in v0.4.25
type GetCustomFunctionsBySchemaAndTablesRow ¶ added in v0.4.25
type GetCustomSequencesBySchemaAndTablesParams ¶ added in v0.4.25
type GetCustomSequencesBySchemaAndTablesRow ¶ added in v0.4.25
type GetCustomTriggersBySchemaAndTablesRow ¶ added in v0.4.25
type GetDataTypesBySchemaAndTablesParams ¶ added in v0.4.25
type GetDataTypesBySchemaAndTablesRow ¶ added in v0.4.25
type GetDatabaseSchemaRow ¶
type GetDatabaseSchemaRow struct { SchemaName string TableName string ColumnName string DataType string ColumnDefault string IsNullable string CharacterMaximumLength int32 NumericPrecision int32 NumericScale int32 OrdinalPosition int16 GeneratedType string TableOid pgtype.Uint32 SequenceType string }
type GetDatabaseTableSchemasBySchemasAndTablesRow ¶ added in v0.4.24
type GetDatabaseTableSchemasBySchemasAndTablesRow struct { SchemaName string TableName string ColumnName string DataType string ColumnDefault string IsNullable string CharacterMaximumLength int32 NumericPrecision int32 NumericScale int32 OrdinalPosition int16 GeneratedType string TableOid pgtype.Uint32 SequenceType string }
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) GetCustomFunctionsBySchemaAndTables ¶ added in v0.4.25
func (_m *MockQuerier) GetCustomFunctionsBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomFunctionsBySchemaAndTablesParams) ([]*GetCustomFunctionsBySchemaAndTablesRow, error)
GetCustomFunctionsBySchemaAndTables provides a mock function with given fields: ctx, db, arg
func (*MockQuerier) GetCustomSequencesBySchemaAndTables ¶ added in v0.4.25
func (_m *MockQuerier) GetCustomSequencesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomSequencesBySchemaAndTablesParams) ([]*GetCustomSequencesBySchemaAndTablesRow, error)
GetCustomSequencesBySchemaAndTables provides a mock function with given fields: ctx, db, arg
func (*MockQuerier) GetCustomTriggersBySchemaAndTables ¶ added in v0.4.25
func (_m *MockQuerier) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetCustomTriggersBySchemaAndTablesRow, error)
GetCustomTriggersBySchemaAndTables provides a mock function with given fields: ctx, db, schematables
func (*MockQuerier) GetDataTypesBySchemaAndTables ¶ added in v0.4.25
func (_m *MockQuerier) GetDataTypesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetDataTypesBySchemaAndTablesParams) ([]*GetDataTypesBySchemaAndTablesRow, error)
GetDataTypesBySchemaAndTables 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.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) GetCustomFunctionsBySchemaAndTables ¶ added in v0.4.25
func (_e *MockQuerier_Expecter) GetCustomFunctionsBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call
GetCustomFunctionsBySchemaAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetCustomFunctionsBySchemaAndTablesParams
func (*MockQuerier_Expecter) GetCustomSequencesBySchemaAndTables ¶ added in v0.4.25
func (_e *MockQuerier_Expecter) GetCustomSequencesBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetCustomSequencesBySchemaAndTables_Call
GetCustomSequencesBySchemaAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetCustomSequencesBySchemaAndTablesParams
func (*MockQuerier_Expecter) GetCustomTriggersBySchemaAndTables ¶ added in v0.4.25
func (_e *MockQuerier_Expecter) GetCustomTriggersBySchemaAndTables(ctx interface{}, db interface{}, schematables interface{}) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
GetCustomTriggersBySchemaAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- schematables []string
func (*MockQuerier_Expecter) GetDataTypesBySchemaAndTables ¶ added in v0.4.25
func (_e *MockQuerier_Expecter) GetDataTypesBySchemaAndTables(ctx interface{}, db interface{}, arg interface{}) *MockQuerier_GetDataTypesBySchemaAndTables_Call
GetDataTypesBySchemaAndTables is a helper method to define mock.On call
- ctx context.Context
- db DBTX
- arg *GetDataTypesBySchemaAndTablesParams
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.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_GetCustomFunctionsBySchemaAndTables_Call ¶ added in v0.4.25
MockQuerier_GetCustomFunctionsBySchemaAndTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCustomFunctionsBySchemaAndTables'
func (*MockQuerier_GetCustomFunctionsBySchemaAndTables_Call) Run ¶ added in v0.4.25
func (_c *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call) Run(run func(ctx context.Context, db DBTX, arg *GetCustomFunctionsBySchemaAndTablesParams)) *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call
func (*MockQuerier_GetCustomFunctionsBySchemaAndTables_Call) RunAndReturn ¶ added in v0.4.25
func (_c *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call) RunAndReturn(run func(context.Context, DBTX, *GetCustomFunctionsBySchemaAndTablesParams) ([]*GetCustomFunctionsBySchemaAndTablesRow, error)) *MockQuerier_GetCustomFunctionsBySchemaAndTables_Call
type MockQuerier_GetCustomSequencesBySchemaAndTables_Call ¶ added in v0.4.25
MockQuerier_GetCustomSequencesBySchemaAndTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCustomSequencesBySchemaAndTables'
func (*MockQuerier_GetCustomSequencesBySchemaAndTables_Call) Run ¶ added in v0.4.25
func (_c *MockQuerier_GetCustomSequencesBySchemaAndTables_Call) Run(run func(ctx context.Context, db DBTX, arg *GetCustomSequencesBySchemaAndTablesParams)) *MockQuerier_GetCustomSequencesBySchemaAndTables_Call
func (*MockQuerier_GetCustomSequencesBySchemaAndTables_Call) RunAndReturn ¶ added in v0.4.25
func (_c *MockQuerier_GetCustomSequencesBySchemaAndTables_Call) RunAndReturn(run func(context.Context, DBTX, *GetCustomSequencesBySchemaAndTablesParams) ([]*GetCustomSequencesBySchemaAndTablesRow, error)) *MockQuerier_GetCustomSequencesBySchemaAndTables_Call
type MockQuerier_GetCustomTriggersBySchemaAndTables_Call ¶ added in v0.4.25
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.25
func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) Run(run func(ctx context.Context, db DBTX, schematables []string)) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
func (*MockQuerier_GetCustomTriggersBySchemaAndTables_Call) RunAndReturn ¶ added in v0.4.25
func (_c *MockQuerier_GetCustomTriggersBySchemaAndTables_Call) RunAndReturn(run func(context.Context, DBTX, []string) ([]*GetCustomTriggersBySchemaAndTablesRow, error)) *MockQuerier_GetCustomTriggersBySchemaAndTables_Call
type MockQuerier_GetDataTypesBySchemaAndTables_Call ¶ added in v0.4.25
MockQuerier_GetDataTypesBySchemaAndTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDataTypesBySchemaAndTables'
func (*MockQuerier_GetDataTypesBySchemaAndTables_Call) Return ¶ added in v0.4.25
func (_c *MockQuerier_GetDataTypesBySchemaAndTables_Call) Return(_a0 []*GetDataTypesBySchemaAndTablesRow, _a1 error) *MockQuerier_GetDataTypesBySchemaAndTables_Call
func (*MockQuerier_GetDataTypesBySchemaAndTables_Call) Run ¶ added in v0.4.25
func (_c *MockQuerier_GetDataTypesBySchemaAndTables_Call) Run(run func(ctx context.Context, db DBTX, arg *GetDataTypesBySchemaAndTablesParams)) *MockQuerier_GetDataTypesBySchemaAndTables_Call
func (*MockQuerier_GetDataTypesBySchemaAndTables_Call) RunAndReturn ¶ added in v0.4.25
func (_c *MockQuerier_GetDataTypesBySchemaAndTables_Call) RunAndReturn(run func(context.Context, DBTX, *GetDataTypesBySchemaAndTablesParams) ([]*GetDataTypesBySchemaAndTablesRow, error)) *MockQuerier_GetDataTypesBySchemaAndTables_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.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 { GetCustomFunctionsBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomFunctionsBySchemaAndTablesParams) ([]*GetCustomFunctionsBySchemaAndTablesRow, error) GetCustomSequencesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomSequencesBySchemaAndTablesParams) ([]*GetCustomSequencesBySchemaAndTablesRow, error) GetCustomTriggersBySchemaAndTables(ctx context.Context, db DBTX, schematables []string) ([]*GetCustomTriggersBySchemaAndTablesRow, error) GetDataTypesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetDataTypesBySchemaAndTablesParams) ([]*GetDataTypesBySchemaAndTablesRow, error) GetDatabaseSchema(ctx context.Context, db DBTX) ([]*GetDatabaseSchemaRow, 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) GetCustomFunctionsBySchemaAndTables ¶ added in v0.4.25
func (q *Queries) GetCustomFunctionsBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomFunctionsBySchemaAndTablesParams) ([]*GetCustomFunctionsBySchemaAndTablesRow, error)
func (*Queries) GetCustomSequencesBySchemaAndTables ¶ added in v0.4.25
func (q *Queries) GetCustomSequencesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetCustomSequencesBySchemaAndTablesParams) ([]*GetCustomSequencesBySchemaAndTablesRow, error)
func (*Queries) GetCustomTriggersBySchemaAndTables ¶ added in v0.4.25
func (*Queries) GetDataTypesBySchemaAndTables ¶ added in v0.4.25
func (q *Queries) GetDataTypesBySchemaAndTables(ctx context.Context, db DBTX, arg *GetDataTypesBySchemaAndTablesParams) ([]*GetDataTypesBySchemaAndTablesRow, error)
func (*Queries) GetDatabaseSchema ¶
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)