Documentation ¶
Index ¶
- Constants
- func CueValueToGraphQlField(existingObjects map[string]GraphQlObjectGlue, dataSet DataSet, ...) (graphql.Fields, error)
- func CueValueToGraphQlType(value cue.Value) (*graphql.Scalar, error)
- type DagNode
- type DataSet
- func (d *DataSet) CueDataPath() cue.Path
- func (d *DataSet) GetDataDirectory() string
- func (d *DataSet) GetDataMapCue() string
- func (d *DataSet) GetDefinitionPath() cue.Path
- func (d *DataSet) GetDefinitionPath2() cue.Path
- func (d *DataSet) GetExternalName() string
- func (d *DataSet) GetInlinePath() string
- func (d *DataSet) GetPluralName() string
- func (d *DataSet) GetSchemaCue() cue.Value
- func (d *DataSet) GetSupportedExtensions() []string
- func (d *DataSet) ID() string
- func (d *DataSet) IsSupportedExtension(ext string) bool
- func (d *DataSet) String() string
- type DataSetMetadata
- type Engine
- func (r *Engine) CountDataSets() int
- func (r *Engine) GetAllData(dataSetName string) cue.Value
- func (r *Engine) GetDataSet(name string) (DataSet, error)
- func (r *Engine) GetDataSetByPlural(plural string) (DataSet, error)
- func (r *Engine) GetDataSets() map[string]DataSet
- func (r *Engine) GetDataSetsDAG() *dag.DAG
- func (r *Engine) GetOutput() (cue.Value, error)
- func (r *Engine) Insert(dataSet DataSet, record map[string]interface{}) error
- func (r *Engine) MarshalJSON() ([]byte, error)
- func (r *Engine) MarshalString() (string, error)
- func (r *Engine) ReferentialIntegrity() error
- func (r *Engine) RegisterSchema(cueString string) error
- type GraphQlObjectGlue
- type SchemaMetadata
Constants ¶
View Source
const DataSetMetadataCue = `{
_dataset: {
plural: string
supportedExtensions: [...string]
}
}`
Can't use dataSetField, yet.
View Source
const RecordBaseCue = `{
id: string
}`
RecordBaseCue is the "Base" configuration that blox expects to exist, but doesn't enforce in user-land. We'll inject this Cue into each DataSet definition.
View Source
const SchemaMetadataCue = `{
_schema: {
namespace: string
name: string
}
}`
Can't use schemaField, yet.
Variables ¶
This section is empty.
Functions ¶
func CueValueToGraphQlField ¶ added in v0.6.0
Types ¶
type DataSet ¶ added in v0.2.7
type DataSet struct {
// contains filtered or unexported fields
}
func (*DataSet) CueDataPath ¶ added in v0.2.7
func (*DataSet) GetDataDirectory ¶ added in v0.2.7
func (*DataSet) GetDataMapCue ¶ added in v0.2.7
func (*DataSet) GetDefinitionPath ¶ added in v0.2.7
func (*DataSet) GetDefinitionPath2 ¶ added in v0.7.0
func (*DataSet) GetExternalName ¶ added in v0.6.0
func (*DataSet) GetInlinePath ¶ added in v0.2.7
GetInlinePath returns an inline cue.Path that can be used within a Cue document like "some: key: #Here"
func (*DataSet) GetPluralName ¶ added in v0.7.5
func (*DataSet) GetSchemaCue ¶ added in v0.6.0
func (*DataSet) GetSupportedExtensions ¶ added in v0.2.7
func (*DataSet) IsSupportedExtension ¶ added in v0.2.7
type DataSetMetadata ¶ added in v0.2.7
type Engine ¶ added in v0.2.8
type Engine struct { // embedded runtime database *blox.Runtime // contains filtered or unexported fields }
func (*Engine) CountDataSets ¶ added in v0.2.8
func (*Engine) GetAllData ¶ added in v0.6.0
func (*Engine) GetDataSet ¶ added in v0.2.8
func (*Engine) GetDataSetByPlural ¶ added in v0.7.0
GetDataSetByID returns a DataSet by its plural name.
func (*Engine) GetDataSets ¶ added in v0.2.8
func (*Engine) GetDataSetsDAG ¶ added in v0.6.0
func (*Engine) MarshalJSON ¶ added in v0.2.8
MarshalJSON returns the database encoded in JSON format
func (*Engine) MarshalString ¶ added in v0.7.1
MarshalJSON returns the database encoded in JSON format
func (*Engine) ReferentialIntegrity ¶ added in v0.2.8
ReferentialIntegrity checks the relationships between the records in the content database
func (*Engine) RegisterSchema ¶ added in v0.2.8
type GraphQlObjectGlue ¶ added in v0.6.0
type SchemaMetadata ¶ added in v0.2.7
Click to show internal directories.
Click to hide internal directories.