mssql

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = "1433"

Variables

This section is empty.

Functions

func New

func New(version, commit string) func() *schema.Provider

func Provider

func Provider(factory model.ConnectorFactory) *schema.Provider

Types

type LoginConnector

type LoginConnector interface {
	CreateLogin(ctx context.Context, name, password, defaultDatabase, defaultLanguage string) error
	GetLogin(ctx context.Context, name string) (*model.Login, error)
	UpdateLogin(ctx context.Context, name, password, defaultDatabase, defaultLanguage string) error
	DeleteLogin(ctx context.Context, name string) error
}

type UserConnector

type UserConnector interface {
	CreateUser(ctx context.Context, database string, user *model.User) error
	GetUser(ctx context.Context, database, username string) (*model.User, error)
	UpdateUser(ctx context.Context, database string, user *model.User) error
	DeleteUser(ctx context.Context, database, username string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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