Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qb-generator can't handle legal characters #2

Closed
robinknaapen opened this issue Sep 4, 2020 · 1 comment
Closed

qb-generator can't handle legal characters #2

robinknaapen opened this issue Sep 4, 2020 · 1 comment

Comments

@robinknaapen
Copy link
Contributor

Using qb-generator on this db.json ends in a fail. The table names are valid, see: mysql

[
	{
		"name": "test$test",
		"fields": [
			{
				"name": "id",
				"data_type": "int"
			}
		]
	}
]

Generated code:

package model

import "git.ultraware.nl/NiseVoid/qb"

///// Test$test /////
var (
	qbTest$testTable = qb.Table{Name: "test$test"}

qbTest$testFID = qb.TableField{Parent: &qbTest$testTable, Name: "id",Type: qb.Int,Size: 32,}

)
@robinknaapen robinknaapen changed the title qb-generator can't handle legal charactes qb-generator can't handle legal characters Sep 4, 2020
@NiseVoid
Copy link
Contributor

NiseVoid commented Sep 10, 2020

$ is now supported in v2.5.0, which also includes the flags -ttrim and -ftrim which could be used as a work around for future unsupported characters.

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

No branches or pull requests

2 participants