requires 'perl', '5.020';
requires 'DBIO', '0.900007';
requires 'DateTime::Format::MySQL';

# DBD::MariaDB bundles the MariaDB Connector/C and works with both MySQL 5.7+
# and MariaDB 10+, so it is the recommended default. DBD::mysql is also fully
# supported (the mysql_* DSN/driver path) but only suggested, as it does not
# build against libmariadb headers.
recommends 'DBD::MariaDB';
suggests 'DBD::mysql';

# future_io async transport base: DBIO::MySQL::Storage::Async subclasses
# DBIO::Async::Storage, resolved at runtime BY CONVENTION
# (ref($storage).'::Async', ADR 0030) only when a connection asks for
# { async => 'future_io' }. A recommends, not a requires: the sync-only driver
# (DBIO::MySQL::Storage) never loads it, so a sync-only install stays free of
# the Future::IO stack. The ev backend (DBIO::MySQL::EV) is a separate dist
# with its own event loop, resolved at runtime -- not declared here.
recommends 'DBIO::Async', '0.900007';

# The emulated LISTEN/NOTIFY on this transport needs dbio-async's Future::IO
# listen seams (the watch loop and its timer mode, _listen_drain, _notify_sql)
# and core's listen contract with _listen_error for a failed cleanup;
# DBIO::MySQL::NotifyTable itself needs neither. The broker_connect_options
# capability this transport declares is kept by dbio-async: its
# _async_broker_conninfo merges the DBD attributes given beside an
# AccessBroker into every connection.

on test => sub {
  requires 'Test::More', '0.98';
  requires 'Test::Exception';
  requires 'Test::Warn';
  requires 'DBI::Const::GetInfoType';
  requires 'Scalar::Util';
  requires 'Time::HiRes';
  requires 'Data::Dumper';
  # A Future::IO event-loop implementation for the live future_io roundtrip
  # (t/54-future-io-live.t); IO::Async is the recommended one.
  recommends 'Future::IO::Impl::IOAsync';
  recommends 'IO::Async';
};
