mariadb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	WaitingList chan query.Query
	ServerMeta  chan server.Server
	// contains filtered or unexported fields
}

Database holds parser structure

func New

func New(qc chan query.Query) *Database

New instance of parser

func (*Database) GetServerMeta

func (db *Database) GetServerMeta() server.Server

func (*Database) ParseBlocks

func (db *Database) ParseBlocks(rawBlocs chan []string)

ParseBlocks reads a query block and adds it into a channel

func (*Database) ParseServerMeta

func (db *Database) ParseServerMeta(lines chan []string)

ParseServerMeta reads slowquerylog metadata and adds it into a channel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳