test

package
v1.0.3-billing Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	gorm.Model

	Name string `gorm:"column:myname"`
}

Blog is a blog gen:qs

func (*Blog) SomeMethod

func (b *Blog) SomeMethod() string

SomeMethod is just for testing purposes

type CheckReservedKeywords

type CheckReservedKeywords struct {
	Type   string
	Struct int
}

CheckReservedKeywords is a struct for checking work of fields with reserved keywords names gen:qs

type Post

type Post struct {
	gorm.Model

	Blog   *Blog // may be no blog
	User   User
	Title  *string
	Str    tmp.StringDef
	Unused int `gorm:"-"`
}

Post is an article gen:qs

func (*Post) String

func (p *Post) String() string

String is just for testing purposes

type User

type User struct {
	gorm.Model

	// Posts []Post
	Name    string
	Surname *string `gorm:"column:user_surname"`
	Email   string
}

User is a usual user gen:qs

Directories

Path Synopsis
Code generated by go-queryset.
Code generated by go-queryset.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL