embedmd

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 18 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

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

func (EmbedMDService) Type

func (s EmbedMDService) Type() string

type ErrMissingType

type ErrMissingType string

func (ErrMissingType) Error

func (t ErrMissingType) Error() string

Jump to

Keyboard shortcuts

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