Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support unprepared statement errors. fix #11
If Cassandra returns an unprepared error, the DAO will re-prepare it and try the query again. This fixes #11, and handles the case where Cassandra would go down, and then up again while Kong is still running. Other changes: - docs: base_dao and the factory have been given a better documentation. - refactor: - `kong_query` is now the prefered term for _queries elements. - `params` becomes `args_keys` and `values` `args` for consistance with the driver. - The `_execute` method was renamed to `_execute_kong_query` and broken into smaller chunks. - Batch statements now need to use the raw `_execute` method (the new one, not the one renamed to `_execute_kong_query`. - Cassandra errors now also have the error code.
- Loading branch information