-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccfec3e
commit f41ba82
Showing
1 changed file
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,33 @@ | ||
# casbin-bun-adapter | ||
Bun ORM adapter for Casbin | ||
# Casbin Bun Adapter | ||
<p align='left'> | ||
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/JunNishimura/casbin-bun-adapter"> | ||
<img alt="GitHub" src="https://img.shields.io/github/license/JunNishimura/casbin-bun-adapter"> | ||
<a href="https://github.com/JunNishimura/casbin-bun-adapter/actions/workflows/test.yml"><img src="https://github.com/JunNishimura/casbin-bun-adapter/actions/workflows/test.yml/badge.svg" alt="test"></a> | ||
<a href="https://goreportcard.com/report/github.com/JunNishimura/casbin-bun-adapter"><img src="https://goreportcard.com/badge/github.com/JunNishimura/casbin-bun-adapter" alt="Go Report Card"></a> | ||
</p> | ||
|
||
## π Overview | ||
casbin-bun-adapter is the [Bun](https://bun.uptrace.dev/) ORM adapter for [Casbin](https://casbin.org/). | ||
|
||
## π Supported DB | ||
The following databases supported by Bun are also supported by this adapter | ||
1. MySQL | ||
2. PostgreSQL | ||
3. Microsoft SQL Server | ||
4. SQLite | ||
|
||
## π» Installation | ||
``` | ||
go get github.com/JunNishimura/casbin-bun-adapter | ||
``` | ||
|
||
## π Example | ||
```go | ||
|
||
``` | ||
|
||
## πββοΈ Thanks | ||
I would like to express my appreciation to [Gorm Adapter](https://github.com/casbin/gorm-adapter), since casbin-bun-adapter is implemented in a way that fits the Bun ORM based on it. | ||
|
||
## πͺ§ License | ||
casbin-bun-adapter is released under [MIT License](https://github.com/JunNishimura/casbin-bun-adapter/blob/main/LICENSE). |