Documentation
¶
Overview ¶
Package sqlutil provides utilities to SQL-related instrumentation modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriverName ¶
DriverName returns the name of the driver, based on its type. If the driver name cannot be deduced, DriverName will return "generic".
func QuerySignature ¶
QuerySignature returns the "signature" for a query: a high level description of the operation.
For DDL statements (CREATE, DROP, ALTER, etc.), we we only report the first keyword, on the grounds that these statements are not expected to be common within the hot code paths of an application. For SELECT, INSERT, and UPDATE, and DELETE, we attempt to extract the first table name. If we are unable to identify the table name, we simply omit it.
Types ¶
This section is empty.