Skip to content

Make get_prepared_metadata() public #1151

Open
@lvboudre

Description

@lvboudre

I would like to pre serialized my rows and reuse the serialization result.
In order to do that I need to:

let my_row = (....)

let prepared_stmt = ...
let ctx = RowSerializationContext::from_prepared(ps.get_prepared_metadata()); /// ERROR: ge_prepared_metadata() is pub(crate) not pub.
let SerializedValues::from_serializable(ctx, my_row)

By making get_prepared_metadata this would make the API more coherent since
SerializedValues, RowSerializationContext are public so is their contructors metadata that ultimately rely on PreparedMetadata which is also public.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions