rqlite / gorqlite

A Go client for rqlite, the distributed database built on SQLite
MIT License
139 stars 34 forks source link

Implement methods allowing to use the Unified Endpoint #37

Closed aromanovich closed 5 months ago

aromanovich commented 5 months ago

Implemented Request, RequestContext, RequestParameterized and RequestParameterizedContext methods.

I've factored out parseWriteResult and parseReadResult from WriteParameterizedContext and QueryParameterizedContext to reuse them within RequestParameterizedContext implementation.

This is just an initial approach. If it seems feasible, I will add more tests.

aromanovich commented 5 months ago

What more testing do you plan to add?

We could probably add tests for the rest of the introduced methods, but I doubt it's worth it.

otoolep commented 5 months ago

Sounds good -- thanks. That the existing test suite passes, and that you added some new test coverage, is good enough.