It should not implement query, but big_query. query is going to be provided by the Sql.Sql class.
Actually, big_query is much more difficult to implement and not all databases have facilities to work in that manner. There's a helper that allows a big_query to be generated from query(). There was a conversation about it a year or two when I wrote my SQLite glue.
Bill