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

Fix comment position of first column of table #1377

Open
i16fujimoto opened this issue Apr 6, 2024 · 1 comment
Open

Fix comment position of first column of table #1377

i16fujimoto opened this issue Apr 6, 2024 · 1 comment

Comments

@i16fujimoto
Copy link

i16fujimoto commented Apr 6, 2024

What version of SQLBoiler are you using (sqlboiler --version)?

SQLBoiler v4.16.0

Problem

Comment position in first column of table does not break line

Example auto generation code for sturuct

type Item struct { // 商品番号
	ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
	// メーカー
	Maker string `boil:"maker" json:"maker" toml:"maker" yaml:"maker"`
	// 作成日時
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	// 更新日時
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	// 削除日時
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *itemR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L itemL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Request

I want to fix following file, but I don't have permission to push to this repository, so I want to get it.

{{- range $column.Comment | splitLines -}} // {{ . }}
{{ end -}}

@winterjung
Copy link

I hope for this too. You can fork the repository, then commit your fix to the master branch of the forked repository (i.e., i16fujimoto/sqlboiler) and open a pull request into volatiletech/sqlboiler.

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

No branches or pull requests

3 participants