Preetam / Mysqllog
Licence: mit
Lightweight MySQL slow query log parser in Go
Stars: ✭ 29
Projects that are alternatives of or similar to Mysqllog
Matomo
Liberating Web Analytics. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. We love Pull Requests!
Stars: ✭ 15,711 (+54075.86%)
Mutual labels: mysql, log
Laravel Log To Db
Custom Laravel and Lumen 5.6+ Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel/Monolog native logging functionality.
Stars: ✭ 76 (+162.07%)
Mutual labels: mysql, log
Jsqlparser
JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
Stars: ✭ 3,405 (+11641.38%)
Mutual labels: parser, mysql
Sql Parser
A validating SQL lexer and parser with a focus on MySQL dialect.
Stars: ✭ 284 (+879.31%)
Mutual labels: parser, mysql
Schemalex
Generate difference sql of two mysql schema
Stars: ✭ 356 (+1127.59%)
Mutual labels: parser, mysql
Streamcaster
Live streaming platform built with Node.js and React
Stars: ✭ 20 (-31.03%)
Mutual labels: mysql
Ecommerce
A powerful and lightweight eCommerce platform using ReactJs, Graphql, PHP, and Mysql.
Stars: ✭ 28 (-3.45%)
Mutual labels: mysql
Docker Nginx Php Mysql
Docker With Nginx PHP 7.2 And Mysql 5.x for developer
Stars: ✭ 21 (-27.59%)
Mutual labels: mysql
Python Database Sanitizer
Python based database sanitizer for removing sensitive data from your database dumps
Stars: ✭ 29 (+0%)
Mutual labels: mysql
mysqllog
This package provides a simple MySQL slow query log parser.
Example: Parse a log from stdin and print events as JSON
package main
import (
"bufio"
"encoding/json"
"fmt"
"os"
"github.com/Preetam/mysqllog"
)
func main() {
p := &mysqllog.Parser{}
reader := bufio.NewReader(os.Stdin)
for line, err := reader.ReadString('\n'); err == nil; line, err = reader.ReadString('\n') {
event := p.ConsumeLine(line)
if event != nil {
b, _ := json.Marshal(event)
fmt.Printf("%s\n", b)
}
}
}
License
MIT (see LICENSE)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].