<commit_before># Schema DDL

[![Release][release-image]][releases] [![License][license-image]][license]

Schema DDL is a set of Abstract Syntax Trees and generators for producing various DDL and Schema formats.
It's tightly coupled with other tools from **[Snowplow Platform][snowplow]** like
**[Iglu][iglu]** and **[Self-describing JSON][self-describing]**.

Schema DDL itself does not provide any CLI and expose only Scala API.

## Current features

### Flatten Schema

To process JSON Schema in typesafe manner sometimes it's necessary to represent it's nested structure as map of paths to properties.<commit_msg>Schema DDL: add quickstart guide to README.md (close #393)<commit_after># Schema DDL

[![Release][release-image]][releases] [![License][license-image]][license]

Schema DDL is a set of Abstract Syntax Trees and generators for producing various DDL and Schema formats.
It's tightly coupled with other tools from **[Snowplow Platform][snowplow]** like
**[Iglu][iglu]** and **[Self-describing JSON][self-describing]**.

Schema DDL itself does not provide any CLI and expose only Scala API.

## Quickstart

Schema DDL is compiled against Scala 2.11 and 2.12 and availble on Maven Central. In order to use it with SBT, include following module:

```scala
libraryDependencies += "com.snowplowanalytics" %% "schema-ddl" % "0.8.0"
```

## Current features

### Flatten Schema

To process JSON Schema in typesafe manner sometimes it's necessary to represent it's nested structure as map of paths to properties.
{'fraction_non_alphanumeric': 0.1034937376400791, 'fraction_numerical': 0.007910349373764008, 'mean_word_length': 5.459574468085107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7364382', 'n_tokens_mistral': 461, 'n_tokens_neox': 421, 'n_words': 187}