Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wroge committed Jan 14, 2025
1 parent e2f5a9d commit 4e38ace
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# A Go Template-Based SQL Builder and ORM
# A Go Template-Based SQL Builder and Struct Mapper

[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white)](https://pkg.go.dev/github.com/wroge/sqlt)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/wroge/sqlt.svg?style=social)](https://github.com/wroge/sqlt/tags)
Expand All @@ -8,7 +8,7 @@
import "github.com/wroge/sqlt"
```

`sqlt` uses Go’s template engine to create a flexible, powerful, and type-safe SQL builder and ORM.
`sqlt` uses Go’s template engine to create a flexible, powerful, and type-safe SQL builder and struct mapper.

## Type-Safety without a Build Step

Expand Down Expand Up @@ -73,7 +73,7 @@ id, err := queryID.One(ctx, db, "The Hobbit")
## Support for multiple Dialects and Placeholders

- **Templates are escaped, ensuring the package is not vulnerable to SQL injection**.
- You can use both static placeholders (`?`) and positional placeholders (Go format strings like `%d`).
- You can use both static placeholders (`?`) and positional placeholders (Go format strings like `$%d`).
- This package **supports any template functions** (like `lower` or `fail` from [Masterminds/sprig](https://github.com/Masterminds/sprig)).
- Multiple dialects can be used by implementing your own template functions.

Expand Down

0 comments on commit 4e38ace

Please sign in to comment.