Documentation
¶
Overview ¶
Package entlite holds the core types of the schema dsl.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract interface {
Contract()
}
Contract is one output layer a field or query belongs to.
type Layer ¶ added in v0.0.3
type Layer interface {
Contract
// ReadOnly exposes the field or query only when reading.
ReadOnly() Contract
// WriteOnly exposes the field or query only when writing.
WriteOnly() Contract
}
Layer is a contract that can be narrowed to one direction.
type PROTOContract ¶
type PROTOContract struct {
// contains filtered or unexported fields
}
PROTOContract is the proto layer, it drives the api surface.
func (PROTOContract) ReadOnly ¶ added in v0.0.3
func (c PROTOContract) ReadOnly() Contract
ReadOnly exposes the field or query only when reading.
func (PROTOContract) WriteOnly ¶ added in v0.0.3
func (c PROTOContract) WriteOnly() Contract
WriteOnly exposes the field or query only when writing.
type SQLCContract ¶
type SQLCContract struct {
// contains filtered or unexported fields
}
SQLCContract is the sqlc layer, it drives the database code.
func (SQLCContract) ReadOnly ¶ added in v0.0.3
func (c SQLCContract) ReadOnly() Contract
ReadOnly exposes the field or query only when reading.
func (SQLCContract) WriteOnly ¶ added in v0.0.3
func (c SQLCContract) WriteOnly() Contract
WriteOnly exposes the field or query only when writing.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package field holds the field builders used to describe an entity schema.
|
Package field holds the field builders used to describe an entity schema. |
|
Package filter holds the filters used by a ListBy query.
|
Package filter holds the filters used by a ListBy query. |
|
Package index holds the index builders used in an entity schema.
|
Package index holds the index builders used in an entity schema. |
|
Package query holds the query builders used in an entity schema.
|
Package query holds the query builders used in an entity schema. |
Click to show internal directories.
Click to hide internal directories.