filter

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package filter contains the routines for managing a database filter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseFilter

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

DatabaseFilter stores a list of filtered databases given a comma-separated list of database names

func NewDatabaseFilter

func NewDatabaseFilter(filter string) *DatabaseFilter

NewDatabaseFilter returns the DatabaseFilter based on the comma-separated list of database names given

func (*DatabaseFilter) Args

func (f *DatabaseFilter) Args() []string

Args returns the arguments to be provided to sql.Query(..., args)

func (*DatabaseFilter) ExtraSQL

func (f *DatabaseFilter) ExtraSQL() string

ExtraSQL returns the extra string to apply to the base SQL statement (placeholders)

Jump to

Keyboard shortcuts

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