{"id":64316,"library":"datadog-go-sqllexer","title":"Datadog SQL Lexer","description":"Package sqllexer provides a SQL lexer for tokenizing and normalizing SQL queries.","status":"active","version":"0.2.1","language":"go","source_language":null,"source_url":"https://github.com/DataDog/go-sqllexer","tags":["sql","lexer","tokenizer","datadog","database"],"install":[{"cmd":"go get github.com/DataDog/go-sqllexer","lang":"bash","label":"Install github.com/DataDog/go-sqllexer"}],"dependencies":[],"imports":[{"symbol":"sqllexer","correct":"github.com/DataDog/go-sqllexer"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/DataDog/go-sqllexer\"\n)\n\nfunc main() {\n\ttokens := sqllexer.Tokenize(\"SELECT * FROM users WHERE id = 1\")\n\tfor _, t := range tokens {\n\t\tfmt.Println(t.Type, t.Value)\n\t}\n}","lang":"go","description":"Tokenizes a SQL query and prints each token's type and value."},"warnings":[],"env_vars":null,"search_vec":"'databas':20 'datadog':1,19 'lexer':3,9,17 'normal':13 'packag':4 'provid':6 'queri':15 'sql':2,8,14,16 'sqllexer':5 'token':11,18","created_at":"2026-06-17T16:54:34.720446+00:00","updated_at":"2026-06-17T16:54:34.720446+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/DataDog/go-sqllexer","github":"https://github.com/DataDog/go-sqllexer","docs":"https://pkg.go.dev/github.com/DataDog/go-sqllexer#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}