Help us shape the future of Go! Take the 2026 Go Developer Survey

mysql

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mysql extracts schema metadata from a MySQL service.

MySQL has a single namespace level ("schema", synonymous with "database"), whereas OpenMetadata models a Database that contains DatabaseSchemas. We map each MySQL schema to an OpenMetadata DatabaseSchema under a single logical Database named "default" (the OpenMetadata convention used by the Python MySQL connector).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(src config.Source) (source.Source, error)

New builds a MySQL Source.

Types

type Source

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

Source extracts metadata from a MySQL instance.

func (*Source) Close

func (s *Source) Close() error

Close releases the connection pool.

func (*Source) Extract

func (s *Source) Extract(ctx context.Context) (*model.Service, error)

Extract pulls schemas, tables and columns into a single logical database.

func (*Source) Prepare

func (s *Source) Prepare(ctx context.Context) error

Prepare opens the connection pool and pings it.

Jump to

Keyboard shortcuts

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