Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkojedzinszky/djan-go-rm
Generate Django-like Go models from Django models
https://github.com/rkojedzinszky/djan-go-rm
django django-models golang orm python
Last synced: about 2 months ago
JSON representation
Generate Django-like Go models from Django models
- Host: GitHub
- URL: https://github.com/rkojedzinszky/djan-go-rm
- Owner: rkojedzinszky
- License: mit
- Created: 2020-09-30T16:07:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T13:18:03.000Z (5 months ago)
- Last Synced: 2024-08-27T14:39:52.599Z (5 months ago)
- Topics: django, django-models, golang, orm, python
- Language: Python
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# djan-go-rm
Generate Django-like Go models from Django models.
## Usage
Assume you are in your Django projects root, you have an application called `app1`. Then, you just invoke the generator as:
```shell
$ DJANGO_SETTINGS_MODULE=.settings ../djan-go-rm/djan-go-rm.py --gomodule app1
```And then look for files under models/, they are ready to use.
The concept is similar than in Django, you can query objects from database through querysets. Filtering functions are generated for all fields.