Documentation ¶
Index ¶
- func AdvanceQueryExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func CasbinExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func DatabaseExamples(ctx context.Context, t *testing.T, client *sqlike.Client)
- func DeleteExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func ExtraExamples(ctx context.Context, t *testing.T, db *sqlike.Database, mg *mongo.Database)
- func FindErrorExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func FindExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func IndexExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func InsertErrorExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func InsertExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func JSONExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func JoinExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func MigrateErrorExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func MigrateExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func PaginationExamples(ctx context.Context, t *testing.T, c *sqlike.Client)
- func SQLDumpExamples(ctx context.Context, t *testing.T, client *sqlike.Client)
- func SpatialExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func TransactionExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func UpdateErrorExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func UpdateExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- type Address
- type Country
- type CustomValue
- type Enum
- type LongStr
- type Model
- type Spatial
- type User
- type UserAddress
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvanceQueryExamples ¶
AdvanceQueryExamples :
func CasbinExamples ¶
CasbinExamples :
func DatabaseExamples ¶
DatabaseExamples :
func DeleteExamples ¶
DeleteExamples :
func ExtraExamples ¶
ExtraExamples :
func FindErrorExamples ¶
FindErrorExamples :
func FindExamples ¶
FindExamples :
func IndexExamples ¶
IndexExamples :
func InsertErrorExamples ¶
InsertErrorExamples :
func InsertExamples ¶
InsertExamples :
func JSONExamples ¶
JSONExamples :
func JoinExamples ¶
JoinExamples :
func MigrateErrorExamples ¶
MigrateErrorExamples :
func MigrateExamples ¶
MigrateExamples :
func PaginationExamples ¶
PaginationExamples :
func SQLDumpExamples ¶
SQLDumpExamples :
func SpatialExamples ¶
SpatialExamples :
func TransactionExamples ¶
TransactionExamples :
func UpdateErrorExamples ¶
UpdateErrorExamples :
Types ¶
type Address ¶
type Address struct { Line1 string Line2 string `sqlike:",virtual_column"` // this will not work if it's embedded struct City string `sqlike:",virtual_column"` // this will not work if it's embedded struct State string `sqlike:",virtual_column"` // this will not work if it's embedded struct // Country `sqlike:",inline"` Country Country }
Address :
type CustomValue ¶
type CustomValue struct { }
func (CustomValue) ColumnDataType ¶
func (c CustomValue) ColumnDataType(ctx context.Context) *sql.Column
ColumnDataType :
type Spatial ¶
type Spatial struct { ID int64 `sqlike:",primary_key,auto_increment"` Point orb.Point PtrPoint *orb.Point Point4326 orb.Point `sqlike:"PointWithSRID,srid=4326"` LineString orb.LineString LineString2 orb.LineString LineString3 orb.LineString PtrLineString *orb.LineString LineString4326 orb.LineString `sqlike:"LineStringWithSRID,srid=4326"` }
Spatial :
type User ¶
type User struct { ID int64 `sqlike:",auto_increment"` Name string Age int Status userStatus `sqlike:",enum=ACTIVE|SUSPEND"` CreatedAt time.Time `sqlike:",default=CURRENT_TIMESTAMP"` }
User :
type UserAddress ¶
Click to show internal directories.
Click to hide internal directories.