repositories

package
v0.67.1 Latest Latest
Warning

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

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

Documentation

Overview

Repositories contains a generic interface for interacting with repositories of data. Repositories may sit within their own packages, and may also be a "datasource".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnonymiseData

func AnonymiseData(ctx context.Context, db *sql.DB, orgs []string) (err error)

func CreateTables

func CreateTables(ctx context.Context, db *sql.DB) (err error)

Types

type Repository

type Repository interface {
	CreateTables(ctx context.Context, sqlDB *sql.DB) error
	AnonymiseData(ctx context.Context, sqlDB *sql.DB, orgs []string) (err error)
}

Jump to

Keyboard shortcuts

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