Documentation ¶
Index ¶
- func CasbinExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- func DatabaseExamples(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 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 QueryExamples(ctx context.Context, t *testing.T, db *sqlike.Database)
- 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 Enum
- type LongStr
- type Model
- type Spatial
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 MigrateErrorExamples ¶
MigrateErrorExamples :
func MigrateExamples ¶
MigrateExamples :
func PaginationExamples ¶
PaginationExamples :
func QueryExamples ¶
QueryExamples :
func SQLDumpExamples ¶ added in v1.1.1
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 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 :
Click to show internal directories.
Click to hide internal directories.