go-open-soql-parser

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 0 Imported by: 0

README

go-open-soql-parser

Open source implementation of the SOQL parser for Go.

Test release Go version

logo

🧭 Examples

🚀 Getting started

package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "github.com/shellyln/go-open-soql-parser/soql/parser"
)

func main() {
    src := `
    SELECT Id FROM Contact WHERE Name like 'a%'
    `

    ret, err := parser.Parse(src)
    if err != nil {
        fmt.Println(err)
    }

    jsonStr, err := json.Marshal(ret)
    if err != nil {
        println(err)
    }

    var buf bytes.Buffer
    json.Indent(&buf, jsonStr, "", "  ")

    fmt.Println(buf.String())
}

⚖️ License

MIT
Copyright (c) 2023 Shellyl_N and Authors.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
soql

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL