databases

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaginateDatabasesParams

type PaginateDatabasesParams struct {
	Page  int
	Limit int
}

type Service

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

func New

func New(
	env config.Env, dbgen *dbgen.Queries, ints *integration.Integration,
	webhooksService *webhooks.Service,
) *Service

func (*Service) CreateDatabase

func (*Service) DeleteDatabase

func (s *Service) DeleteDatabase(
	ctx context.Context, id uuid.UUID,
) error

func (*Service) GetAllDatabases

func (s *Service) GetAllDatabases(
	ctx context.Context,
) ([]dbgen.DatabasesServiceGetAllDatabasesRow, error)

func (*Service) GetDatabase

func (s *Service) GetDatabase(
	ctx context.Context, id uuid.UUID,
) (dbgen.DatabasesServiceGetDatabaseRow, error)

GetDatabase retrieves a database entry by ID.

func (*Service) GetDatabasesQty

func (s *Service) GetDatabasesQty(
	ctx context.Context,
) (dbgen.DatabasesServiceGetDatabasesQtyRow, error)

func (*Service) TestAllDatabases

func (s *Service) TestAllDatabases()

func (*Service) TestDatabase

func (s *Service) TestDatabase(
	ctx context.Context, version, connString string,
) error

func (*Service) TestDatabaseAndStoreResult

func (s *Service) TestDatabaseAndStoreResult(
	ctx context.Context, databaseID uuid.UUID,
) error

func (*Service) UpdateDatabase

UpdateDatabase updates an existing database entry.

Jump to

Keyboard shortcuts

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