Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-advanced-admin/orm-gorm
GORM integration for the advanced Go admin panel framework.
https://github.com/go-advanced-admin/orm-gorm
admin admin-dashboard admin-framework admin-library admin-live-panel admin-panel administration go go-admin-framework go-admin-library go-advanced-admin go-advanced-admin-integration go-advanced-admin-orm-integration go-orm goadmin goadvancedadmin golang gorm gorm-orm orm
Last synced: 16 days ago
JSON representation
GORM integration for the advanced Go admin panel framework.
- Host: GitHub
- URL: https://github.com/go-advanced-admin/orm-gorm
- Owner: go-advanced-admin
- License: apache-2.0
- Created: 2024-10-05T21:14:14.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-10T19:08:45.000Z (2 months ago)
- Last Synced: 2024-10-25T03:40:14.780Z (about 2 months ago)
- Topics: admin, admin-dashboard, admin-framework, admin-library, admin-live-panel, admin-panel, administration, go, go-admin-framework, go-admin-library, go-advanced-admin, go-advanced-admin-integration, go-advanced-admin-orm-integration, go-orm, goadmin, goadvancedadmin, golang, gorm, gorm-orm, orm
- Language: Go
- Homepage: https://goadmin.dev/gorm-integration.html
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Go Advanced Admin - GORM Integration
[GORM](https://gorm.io/) integration for the Go Advanced Admin Panel.
[![Go Report Card](https://goreportcard.com/badge/github.com/go-advanced-admin/orm-gorm)](https://goreportcard.com/report/github.com/go-advanced-admin/orm-gorm)
[![Go](https://github.com/go-advanced-admin/orm-gorm/actions/workflows/tests.yml/badge.svg)](https://github.com/go-advanced-admin/orm-gorm/actions/workflows/tests.yml)
[![License: Apache-2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white)](https://pkg.go.dev/github.com/go-advanced-admin/orm-gorm?tab=doc)This package provides GORM integration for the Go Advanced Admin Panel, allowing you to use GORM as your ORM backend.
## Installation
Add the module to your project by running:
```sh
go get github.com/go-advanced-admin/gorm-integration
```## Documentation
For detailed documentation on how to use the GORM integration, please visit the [official documentation website](https://goadmin.dev/gprm.html).
## Quick Start
```go
import (
"github.com/go-advanced-admin/admin"
"github.com/go-advanced-admin/gorm-integration"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)func main() {
// Initialize GORM
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})
if err != nil {
panic("failed to connect database")
}// Initialize the ORM integrator
ormIntegrator := admingorm.NewIntegrator(db)// Use ormIntegrator when initializing the admin panel
}
```For more detailed examples and configuration options, please refer to the [GORM Integration Guide](https://goadmin.dev/gorm.html).
## Contributing
Contributions are always welcome! Please refer to the [Contributing Guidelines](https://github.com/go-advanced-admin/admin/blob/main/CONTRIBUTING.md) in the main repository.
## License
This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.