filename

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package filename contains the routines for converting a filename to a MySQL object name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Simplify

func Simplify(path string, munger Munger, qualifiedNamer QualifiedNamer, datadir string, relaylog string) string

Simplify converts the filename into a more recognisable MySQL object name. This simpler name may also merge several different filenames into one. Values used here are cached for performance reasons.

Types

type Config

type Config interface {
	Get(setting string) string
}

The Config interface is to pull out a value given a config setting

type Munger

type Munger func(string) string

Munger allows us to modify the input string in any form we like, e.g. anonymising

type QualifiedNamer

type QualifiedNamer func(string, string) string

QualifiedNamer allows us to convert a schema and table into a single name

Jump to

Keyboard shortcuts

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