Skip to content

Releases: tkcrm/pgxgen

v0.3.7

14 Aug 09:48
7342fdc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.6...v0.3.7

v0.3.6

13 Aug 17:31
0d13a36
Compare
Choose a tag to compare

What's Changed

  • update cli and bump sqlc version to v1.27.0 by @sxwebdev in #52
  • replace imports in sqlc generated code by @sxwebdev in #53

Full Changelog: v0.3.5...v0.3.6

v0.3.5

29 Jul 13:00
44ccf98
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.4...v0.3.5

v0.3.4

20 May 13:47
14a21ff
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.3...v0.3.4

v0.3.3

14 May 08:11
41703f3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.2...v0.3.3

v0.3.2

05 May 08:29
a6bf58f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.3.2

v0.3.1

05 May 08:09
88e87a6
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

11 Apr 17:17
61604b2
Compare
Choose a tag to compare

NEW

  • Use go ast parser
  • Update go keystone models
  • Bump sqlc version to 1.26.0
  • Update all dependencies
  • Generate column names for table

Generate column names for table

Use new param include_column_names in constants to generate column names for table

constants:
  tables:
    users:
      output_dir: internal/store/repos/repo_users
      include_column_names: true

The output will be like this

type ColumnName string

func (s ColumnName) String() string { return string(s) }

func (s ColumnName) StructName() string {
	v := stringy.New(string(s)).CamelCase()
	v = stringy.New(v).UcFirst()
	return strings.ReplaceAll(v, "Id", "ID")
}

const (
	ColumnNameUsersId                  ColumnName = "id"
	ColumnNameUsersFirstName           ColumnName = "first_name"
	ColumnNameUsersLastName            ColumnName = "last_name"
	ColumnNameUsersCreatedAt           ColumnName = "created_at"
)

func UsersColumnNames() []ColumnName {
	return []ColumnName{
		ColumnNameUsersId,
		ColumnNameUsersFirstName,
		ColumnNameUsersLastName,
		ColumnNameUsersCreatedAt,
	}
}

v0.2.9

11 Jan 08:34
b960903
Compare
Choose a tag to compare

New

  • bump sqlc version to 1.25
  • update all deps

v0.2.8

22 Nov 19:31
eb7f088
Compare
Choose a tag to compare

New

  • bump sqlc version to 1.24