DB: How to code non-PDO DB w/ SQL-like language and prep. stmt

Hello !

Here’s PHP driver for Apache Cassandra: https://github.com/datastax/php-driver

I want to quickly try if I can convert my (yet closed-source) Cassandra Yii2 component to this lib, now it’s on https://github.com/Orange-OpenSource/YACassandraPDO, which looks under-maintained and unpromising.

The new driver is not PDO-based, instead it’s a thin wrap on C++ library.

On the other hand, it still has concept of prepared statement.

What classes should I minimally override to get rid of PDO and move the Yii2’s prepared statement pipeline to custom library ?

What are interfaces of that classes (Connection, Command ?), i.e. the minimal set of methods and their signatures, what makes their identity and without which the classes cease to be itself ?