Object-oriented API, with support for prepared statements