I've got a little transactional KV store in the wings and have been thinking about writing a Go frontend for it. I'd love full SQL support, but there's no way I'm going to implement my own query optimizer. How hard would it be to repurpose this layer to back onto a generic sorted KV store?
It this deeply tied in to the rest of cockroachdb's architecture, or does it talk through a simple generic KV store interface?