Skip to content

Commit f6399a4

Browse files
committed
update documentation
1 parent b4aeb06 commit f6399a4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ func main() {
5050
panic(err)
5151
}
5252
fmt.Printf("the query fingerprint is: %s\n", fp)
53+
54+
srv := p.GetServerMeta()
55+
fmt.Printf("the SQL server listens ton port %d", srv.Port)
5356
}
5457
```
5558

slowql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ type Kind int
5555
type Parser interface {
5656
// GetNext returns the next query of the parser
5757
GetNext() Query
58+
// GetServerMeta returns informations about the SQL server in usage
5859
GetServerMeta() Server
5960
parseBlocs(rawBlocs chan []string)
6061
parseServerMeta(chan []string)

0 commit comments

Comments
 (0)