mssql_queries

package
v0.4.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRolePermissionsRow

type GetRolePermissionsRow struct {
	TableSchema   string
	TableName     string
	PrivilegeType string
	GrantType     string
}

type MockQuerier

type MockQuerier struct {
	mock.Mock
}

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) GetRolePermissions

func (_m *MockQuerier) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)

GetRolePermissions provides a mock function with given fields: ctx, db

type MockQuerier_Expecter

type MockQuerier_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockQuerier_Expecter) GetRolePermissions

func (_e *MockQuerier_Expecter) GetRolePermissions(ctx interface{}, db interface{}) *MockQuerier_GetRolePermissions_Call

GetRolePermissions is a helper method to define mock.On call

  • ctx context.Context
  • db mysql_queries.DBTX

type MockQuerier_GetRolePermissions_Call

type MockQuerier_GetRolePermissions_Call struct {
	*mock.Call
}

MockQuerier_GetRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRolePermissions'

func (*MockQuerier_GetRolePermissions_Call) Return

func (*MockQuerier_GetRolePermissions_Call) Run

func (*MockQuerier_GetRolePermissions_Call) RunAndReturn

type Querier

type Querier interface {
	GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
}

type Queries

type Queries struct{}

func New

func New() *Queries

func (*Queries) GetRolePermissions

func (q *Queries) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL