Documentation ¶
Index ¶
- func Fragment(ctx specifications.Context, spec *specifications.Specification, ...) (fragment string, err error)
- func Link(ctx specifications.Context, spec *specifications.Specification, ...) (fragment string, err error)
- func Links(ctx specifications.Context, spec *specifications.Specification, ...) (fragment string, err error)
- func Reference(ctx specifications.Context, spec *specifications.Specification, ...) (fragment string, err error)
- func Virtual(ctx specifications.Context, spec *specifications.Specification, ...) (fragment string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fragment ¶
func Fragment(ctx specifications.Context, spec *specifications.Specification, column *specifications.Column) (fragment string, err error)
func Link ¶
func Link(ctx specifications.Context, spec *specifications.Specification, column *specifications.Column) (fragment string, err error)
func Links ¶
func Links(ctx specifications.Context, spec *specifications.Specification, column *specifications.Column) (fragment string, err error)
Links
( SELECT JSON_ARRAYAGG( JSON_OBJECT('id', id, 'name', name, 'age', age, 'create_at', create_at) ) FROM `fns-test`.`user` ) AS foo;
func Reference ¶
func Reference(ctx specifications.Context, spec *specifications.Specification, column *specifications.Column) (fragment string, err error)
Reference (
SELECT JSON_OBJECT('id', id, ...) FROM "schema"."away" WHERE "pk" = "host"."ref_column" OFFSET 0 LIMIT 1
) AS {name}
func Virtual ¶
func Virtual(ctx specifications.Context, spec *specifications.Specification, column *specifications.Column) (fragment string, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.