in `SQLiteDB::InitPrepareParams()`, `DBOpInfo::query_str` is assigned to
`DBOpPrepareInfo::query_str`:
p_params.op.query_str = params->op.query_str;
by making `DBOpPrepareInfo::query_str` a view, we avoid allocating a
copy of the `std::string`
Signed-off-by: Casey Bodley <cbodley@redhat.com>
struct DBOpPrepareInfo {
DBOpUserPrepareInfo user;
- std::string query_str = ":query_str";
+ std::string_view query_str; // view into DBOpInfo::query_str
DBOpBucketPrepareInfo bucket;
DBOpObjectPrepareInfo obj;
DBOpObjectDataPrepareInfo obj_data;