url:
    genome:
        pattern: /$YAMLURL/genome           # The URL genome
        handler: DataHandler                # Uses the datahandler
        kwargs:
            driver: sqlalchemy              # via SQLalchemy, and connects to this DB
            url: mysql+pymysql://anonymous@ensembldb.ensembl.org/gorilla_gorilla_core_84_31
            table: gene
    flags:
        pattern: /$YAMLURL/flags            # The URL flags
        handler: DataHandler                # uses DataHandler
        kwargs:
            driver: sqlalchemy              # with blaze or sqlalchemy driver
            url: sqlite:///$YAMLPATH/database.sqlite3     # to connect database at this path/url
            table: flags                    # on this table
            parameters: {encoding: utf8}    # with additional parameters provided
            default:
              format: html                  # Can also be json or csv
            posttransform:
              function: dbsetup.bigint(content)   # or any function like passlib.hash.sha256_crypt.encrypt
    flags-csv:
        pattern: /$YAMLURL/flags-csv
        handler: DataHandler
        kwargs:
            driver: blaze
            url: $YAMLPATH/flags.csv
            parameters: {encoding: utf8}
            default:
              format: html                  # Can also be json or csv

schedule:
    data-setup-flags:
        function: dbsetup.flags
        startup: true
    data-setup-points:
        function: dbsetup.points
        startup: true

import:
  datahandler/apps:
    path: '*/gramex.yaml'
    namespace: [url, schedule, cache, import]
