embedmd

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbedMDConfig

type EmbedMDConfig struct {
	DatabaseType string
	DatabaseDSN  string
	TLSConfig    *tls.TLSConfig

	// DB is an already connected database instance that, if provided, will
	// be used instead of making a new connection.
	DB *gorm.DB

	// WaitForMigrations instructs Connect to wait for the migrations to
	// run instead of running them itself.
	WaitForMigrations bool
}

func (*EmbedMDConfig) Validate

func (c *EmbedMDConfig) Validate() error

type EmbedMDService

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

func NewEmbedMDService

func NewEmbedMDService(cfg *EmbedMDConfig) (*EmbedMDService, error)

func (*EmbedMDService) Connect

func (s *EmbedMDService) Connect(spec *datastore.Spec) (datastore.RepoSet, error)

func (*EmbedMDService) RunMigrations added in v0.3.7

func (s *EmbedMDService) RunMigrations(spec *datastore.Spec) error

func (EmbedMDService) Type added in v0.3.2

func (s EmbedMDService) Type() string

type ErrMissingType added in v0.3.7

type ErrMissingType string

func (ErrMissingType) Error added in v0.3.7

func (t ErrMissingType) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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