info:
  name: Metabase MongoDB Driver
  version: 1.0.0-SNAPSHOT-3.9.0
  description: Allows Metabase to connect to MongoDB databases.
driver:
  name: mongo
  display-name: MongoDB
  lazy-load: true
  connection-properties:
    - host
    - dbname
    - name: conn-uri
      type: string
      display-name: Paste your connection string
      placeholder: 'mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]'
      required: true
    - merge:
        - port
        - default: 27017
    - merge:
        - user
        - required: false
    - merge:
        - password
        - name: pass
    - name: authdb
      display-name: Authentication Database
      placeholder: Optional database to use when authenticating
    - merge:
        - additional-options
        - display-name: Additional Mongo connection string options
          placeholder: 'retryWrites=true&w=majority&authSource=admin&readPreference=nearest&replicaSet=test'
    - name: use-srv
      type: boolean
      default: false
    - merge:
        - ssl
    - name: ssl-cert
      type: string
      display-name: Server SSL certificate chain
  connection-properties-include-tunnel-config: true
init:
  - step: load-namespace
    namespace: metabase.driver.mongo
