sqlparse

package
v3.15.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseQuery

func ParseQuery(segment *oldfritter.DatastoreSegment, query string)

ParseQuery parses table and operation from the SQL query string. It is a helper meant to be used when writing database/sql driver instrumentation. Check out full example usage here: https://github.com/oldfritter/go-agent/blob/master/v3/integrations/nrmysql/nrmysql.go

ParseQuery is designed to work with MySQL, Postgres, and SQLite drivers. Ability to correctly parse queries for other SQL databases is not guaranteed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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