Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sxwebdev committed Jul 15, 2023
1 parent 2762c36 commit a0a3eca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@

High performance SQL builder with zero dependency for [TDEngine](https://tdengine.com)

## Features

- Databases builder
- Super table builder
- Table builder
- Select builder
- Insert builder
- Delete builder
- Native TDEngine query funcs
- Zero dependency

## Install

```bash
Expand Down Expand Up @@ -40,7 +51,7 @@ b := tsbuilder.NewSTableBuilder().
"speed FLOAT",
).
Tags(map[string]any{
"deviceID": "BINARY(36)",
"deviceID": tsfuncs.Binary("36"),
}).
Options(
"option_1 value_1",
Expand Down Expand Up @@ -142,6 +153,7 @@ if err != nil {
- `tsfuncs.Asin(expr)`
- `tsfuncs.Atan(expr)`
- `tsfuncs.Avg(expr)`
- `tsfuncs.Binary(expr)`
- `tsfuncs.Ceil(expr)`
- `tsfuncs.Cos(expr)`
- `tsfuncs.Cos(expr)`
Expand All @@ -155,7 +167,7 @@ if err != nil {
## TODO

- Add more tdengine funcs
- Add `Drop`, `Alter` methods for database and (s)tables
- Add `Drop`, `Alter` methods for database, super table and table
- Add more tests

## How to contribute
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/tkcrm/tsbuilder

go 1.20
go 1.18

0 comments on commit a0a3eca

Please sign in to comment.