common

Types

pub type Configuration {
  Configuration(
    offstage: Bool,
    service: Bool,
    versioning: Bool,
    force: Bool,
    path: String,
  )
}

Constructors

  • Configuration(
      offstage: Bool,
      service: Bool,
      versioning: Bool,
      force: Bool,
      path: String,
    )

    Arguments

    offstage

    Flag indicating if the integration with offstage is enabled

    service

    Flag indicating if the integration with the suweal service is enabled

    versioning

    Flag indicating if versioning is enabled

    force

    Flag indicating if the generation should be forced, ignoring any checks

    path

    The path supplied to this tool

pub type ParameterProperty {
  ParameterProperty(
    name: String,
    type_: surreal_type.SurrealType,
    linked_enum: option.Option(String),
    dependencies: List(String),
    nested: option.Option(String),
  )
}

Constructors

pub type VersionConfig {
  VersionConfig(
    version: String,
    version_number: Int,
    path: String,
    suweal_version: String,
    date: timestamp.Timestamp,
  )
}

Constructors

  • VersionConfig(
      version: String,
      version_number: Int,
      path: String,
      suweal_version: String,
      date: timestamp.Timestamp,
    )
pub type VersionsConfig {
  VersionsConfig(
    versions: List(VersionConfig),
    migrations: String,
    files: List(#(String, String)),
  )
}

Constructors

  • VersionsConfig(
      versions: List(VersionConfig),
      migrations: String,
      files: List(#(String, String)),
    )

Values

pub fn force_if_not_exists(node: node.Node) -> node.Node
pub fn resolve_surreal_type_access_deps(
  type_: surreal_type.SurrealType,
) -> option.Option(String)
pub fn version_config_to_json(config: VersionConfig) -> json.Json
pub fn versions_config_to_json(
  config: VersionsConfig,
) -> json.Json
✨ Search Document