aarondb/gleamcms/builder/importer

Types

pub type LegacyPost {
  LegacyPost(
    id: String,
    title: String,
    slug: String,
    content_md: String,
    status: String,
    published_at: option.Option(Int),
    tags: List(String),
  )
}

Constructors

  • LegacyPost(
      id: String,
      title: String,
      slug: String,
      content_md: String,
      status: String,
      published_at: option.Option(Int),
      tags: List(String),
    )

Values

pub fn run_import(
  db: process.Subject(transactor.Message),
  json_path: String,
) -> Result(Int, String)
Search Document