mssql_queries

package
v0.4.70 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDatabaseSchemaRow added in v0.4.57

type GetDatabaseSchemaRow struct {
	TableSchema            string
	TableName              string
	ColumnName             string
	OrdinalPosition        int32
	ColumnDefault          string
	IsNullable             string
	DataType               string
	CharacterMaximumLength sql.NullInt32
	NumericPrecision       sql.NullInt16
	NumericScale           sql.NullInt16
	IsIdentity             bool
	IsComputed             bool
	GenerationExpression   sql.NullString
}

type GetRolePermissionsRow

type GetRolePermissionsRow struct {
	TableSchema   string
	TableName     string
	PrivilegeType string
}

type GetTableConstraintsBySchemasRow added in v0.4.57

type GetTableConstraintsBySchemasRow struct {
	SchemaName                   string
	TableName                    string
	ConstraintName               string
	ConstraintType               string
	ConstraintColumns            string
	ConstraintColumnsNullability string
	ReferencedTable              sql.NullString
	ReferencedColumns            sql.NullString
	FKActions                    sql.NullString
	CheckClause                  sql.NullString
}

type MockQuerier

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) GetDatabaseSchema added in v0.4.57

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

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

func (*MockQuerier) GetRolePermissions

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

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

func (*MockQuerier) GetTableConstraintsBySchemas added in v0.4.57

func (_m *MockQuerier) GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)

GetTableConstraintsBySchemas provides a mock function with given fields: ctx, db, schemas

type MockQuerier_Expecter

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

func (*MockQuerier_Expecter) GetDatabaseSchema added in v0.4.57

func (_e *MockQuerier_Expecter) GetDatabaseSchema(ctx interface{}, db interface{}) *MockQuerier_GetDatabaseSchema_Call

GetDatabaseSchema is a helper method to define mock.On call

  • ctx context.Context
  • db mysql_queries.DBTX

func (*MockQuerier_Expecter) GetRolePermissions

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

GetRolePermissions is a helper method to define mock.On call

  • ctx context.Context
  • db mysql_queries.DBTX

func (*MockQuerier_Expecter) GetTableConstraintsBySchemas added in v0.4.57

func (_e *MockQuerier_Expecter) GetTableConstraintsBySchemas(ctx interface{}, db interface{}, schemas interface{}) *MockQuerier_GetTableConstraintsBySchemas_Call

GetTableConstraintsBySchemas is a helper method to define mock.On call

  • ctx context.Context
  • db mysql_queries.DBTX
  • schemas []string

type MockQuerier_GetDatabaseSchema_Call added in v0.4.57

type MockQuerier_GetDatabaseSchema_Call struct {
	*mock.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 added in v0.4.57

func (*MockQuerier_GetDatabaseSchema_Call) Run added in v0.4.57

func (*MockQuerier_GetDatabaseSchema_Call) RunAndReturn added in v0.4.57

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 MockQuerier_GetTableConstraintsBySchemas_Call added in v0.4.57

type MockQuerier_GetTableConstraintsBySchemas_Call struct {
	*mock.Call
}

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

func (*MockQuerier_GetTableConstraintsBySchemas_Call) Return added in v0.4.57

func (*MockQuerier_GetTableConstraintsBySchemas_Call) Run added in v0.4.57

func (*MockQuerier_GetTableConstraintsBySchemas_Call) RunAndReturn added in v0.4.57

type Querier

type Querier interface {
	GetDatabaseSchema(ctx context.Context, db mysql_queries.DBTX) ([]*GetDatabaseSchemaRow, error)
	GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
	GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)
}

type Queries

type Queries struct{}

func New

func New() *Queries

func (*Queries) GetDatabaseSchema added in v0.4.57

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

func (*Queries) GetRolePermissions

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

func (*Queries) GetTableConstraintsBySchemas added in v0.4.57

func (q *Queries) GetTableConstraintsBySchemas(ctx context.Context, db mysql_queries.DBTX, schemas []string) ([]*GetTableConstraintsBySchemasRow, error)

Jump to

Keyboard shortcuts

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