sqlserver

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open added in v0.0.4

func Open(sqlserverConfig sqlserver.Config, config *gorm.Config) (*gorm.DB, error)

func OpenDSN added in v0.0.4

func OpenDSN(dsn string) (*gorm.DB, error)

OpenDSN sqlserver://gorm:LoremIpsum86@localhost:9930?database=gorm

Types

type Config

type Config struct {
	Name              string
	DSN               string
	DefaultStringSize int
	Config            *gorms.GORMConfig
}

func (*Config) DB

func (c *Config) DB() (*gorm.DB, error)

func (*Config) GetName

func (c *Config) GetName() string

Jump to

Keyboard shortcuts

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