packages feed

okf-core-0.2.0.0: test/fixtures/profiles/postgresql.dhall

-- The `: Profile` annotation here is load-bearing: it ties this fixture to the
-- canonical schema, so the `testLoadProfileFixture` round-trip in test/Main.hs
-- fails if okf's published Dhall schema and the Haskell decoder ever drift apart.
let Profile = ../../../dhall/Profile.dhall

in    { name = "shinzui-postgresql"
      , okfVersion = "0.1"
      , frontmatter =
        { required = [ "type", "title" ]
        , recommended = [ "description", "timestamp", "resource" ]
        }
      , allowUnknownTypes = False
      , idField = None Text
      , types =
        [ { type = "PostgreSQL Schema"
          , pathPattern = Some "schemas/*"
          , resourceScheme = Some "postgresql"
          , requireSchemaSection = False
          , schemaColumns = [] : List Text
          , idPrefix = None Text
          }
        , { type = "PostgreSQL Table"
          , pathPattern = Some "schemas/*/tables/*"
          , resourceScheme = Some "postgresql"
          , requireSchemaSection = True
          , schemaColumns = [ "Column", "Type", "Nullable", "Description" ]
          , idPrefix = None Text
          }
        , { type = "PostgreSQL View"
          , pathPattern = Some "schemas/*/views/*"
          , resourceScheme = Some "postgresql"
          , requireSchemaSection = True
          , schemaColumns = [ "Column", "Type", "Description" ]
          , idPrefix = None Text
          }
        ]
      }
    : Profile