Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.