Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
Make fancy README (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakado authored Feb 11, 2025
1 parent e1b4713 commit ace3262
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,19 @@ jobs:

- name: unit-tests
run: |
go test ./... -coverprofile=coverage.out
cat coverage.out | grep -v "query/parser.gen.go" | grep -v "query/ast.go:81" > coverage_filtered.out
go test ./... -coverprofile=$GITHUB_WORKSPACE/coverage.out
cat $GITHUB_WORKSPACE/coverage.out | grep -v "query/parser.gen.go" | grep -v "query/ast.go:81" > $GITHUB_WORKSPACE/coverage_filtered.out
go tool cover -func=coverage_filtered.out
- name: install-goveralls
run: |
go install github.com/mattn/goveralls@latest
- name: submit-coverage
run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/coverage_filtered.out
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
# dumbql
# dumbql ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/defer-panic/dumbql) ![GitHub License](https://img.shields.io/github/license/defer-panic/dumbql) ![GitHub Tag](https://img.shields.io/github/v/tag/defer-panic/dumbql) [![Go Report Card](https://goreportcard.com/badge/github.com/defer-panic/dumbql)](https://goreportcard.com/report/github.com/defer-panic/dumbql) [![CI](https://github.com/defer-panic/dumbql/actions/workflows/main.yml/badge.svg)](https://github.com/defer-panic/dumbql/actions/workflows/main.yml) [![Coverage Status](https://coveralls.io/repos/github/defer-panic/dumbql/badge.svg?branch=main)](https://coveralls.io/github/defer-panic/dumbql?branch=main) [![Go Reference](https://pkg.go.dev/badge/github.com/defer-panic/dumbql.svg)](https://pkg.go.dev/github.com/defer-panic/dumbql)

Simple (dumb) query language and parser for Go.

## Table of Contents

<!-- TOC -->
* [dumbql](#dumbql)
* [Table of Contents](#table-of-contents)
* [Features](#features)
* [Examples](#examples)
* [Simple parse](#simple-parse)
* [Validation against schema](#validation-against-schema)
* [Convert to SQL](#convert-to-sql)
* [Match against structs](#match-against-structs)
* [Query syntax](#query-syntax)
* [Field expression](#field-expression)
* [Field expression operators](#field-expression-operators)
* [Boolean operators](#boolean-operators)
* [“One of” expression](#one-of-expression)
* [Numbers](#numbers)
* [Strings](#strings)
<!-- TOC -->

## Features

- Field expressions (`age >= 18`, `field.name:"field value"`, etc.)
Expand Down

0 comments on commit ace3262

Please sign in to comment.