Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Schema/SchemaRef with type alias to Arc<Vec<FieldInfo>> #1037

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Jan 9, 2024

SchemaRef was used everywhere, pgwire doesn't name the type,
so when the api wanted an Arc<Vec<FieldInfo>> while we had
Arc<Schema{ fields: Vec<FieldInfo> }> it required constructing
Arc::new(schema.fields.clone()), an unnecessary clone

SchemaRef was used everywhere, pgwire doesn't name the type,
so when the api wanted an `Arc<Vec<FieldInfo>>` while we had
`Arc<Schema{ fields: Vec<FieldInfo> }>` it required constructing
`Arc::new(schema.fields.clone())`, an unnecessary clone
@serprex serprex force-pushed the merge-schema-schema-ref branch from aa66464 to 490e14f Compare January 9, 2024 16:11
@serprex serprex enabled auto-merge (squash) January 9, 2024 16:16
@serprex serprex disabled auto-merge January 10, 2024 15:22
@serprex serprex enabled auto-merge (squash) January 10, 2024 15:26
@serprex serprex merged commit 8075aa6 into main Jan 10, 2024
7 checks passed
@serprex serprex deleted the merge-schema-schema-ref branch February 14, 2024 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants