models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package models defines the data structures used for representing SQL query usage information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryTableOp

type QueryTableOp struct {
	QueryName  string           `json:"-"`
	Operations []TableOperation `json:"operations"`
}

QueryTableOp represents the usage information for a single query

type TableOperation

type TableOperation struct {
	Operation string `json:"operation"` // "select", "insert", "update", "delete"
	Table     string `json:"table"`
}

TableOperation represents a single table operation in a query

type UsageReport

type UsageReport map[string][]TableOperation

UsageReport represents the complete usage report for all queries

Jump to

Keyboard shortcuts

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