Skip to content
This repository was archived by the owner on Apr 19, 2018. It is now read-only.
/ sqlgen Public archive

Implement the ability to rename the tables without contriving your type names, and more! #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AmandaCameron
Copy link
Contributor

This short-circuits the type parsing so that when it hits an element named "SQLName" it will automatically tack the tags parsed for that onto the parent type. This allows us to apply tags to the struct.

Additionally, this implements the following behaviour on the schema gen:

  • if skip: true is in the tag, it will skip that field for name concatation. ( To allow fully-naming the fields of a column in the struct.)

An example / test case of this has been retrofitted into the demo/users.go file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant