Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Mar 9, 2021
1 parent b4aeb06 commit f6399a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func main() {
panic(err)
}
fmt.Printf("the query fingerprint is: %s\n", fp)

srv := p.GetServerMeta()
fmt.Printf("the SQL server listens ton port %d", srv.Port)
}
```

Expand Down
1 change: 1 addition & 0 deletions slowql.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type Kind int
type Parser interface {
// GetNext returns the next query of the parser
GetNext() Query
// GetServerMeta returns informations about the SQL server in usage
GetServerMeta() Server
parseBlocs(rawBlocs chan []string)
parseServerMeta(chan []string)
Expand Down

0 comments on commit f6399a4

Please sign in to comment.