Skip to content

Send driver version with HTTP queries - #220

Draft
conradludgate wants to merge 1 commit into
mainfrom
conrad/sql-over-http-client-info
Draft

Send driver version with HTTP queries#220
conradludgate wants to merge 1 commit into
mainfrom
conrad/sql-over-http-client-info

Conversation

@conradludgate

Copy link
Copy Markdown

Introduce a package version header with sql-over-http queries.

Comment thread src/httpQuery.ts Outdated
'Neon-Connection-String': connectionString,
'Neon-Raw-Text-Output': 'true', // because we do our own parsing with node-postgres
'Neon-Array-Mode': 'true', // this saves data and post-processing even if we return objects, not arrays
'Neon-Client-Info': `@neondatabase/serverless/${PACKAGE_VERSION}`,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use a package URL format https://github.com/package-url/purl-spec. Allows for non-JS impls to follow with some consistency.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be added to ws as well.

@conradludgate
conradludgate force-pushed the conrad/sql-over-http-client-info branch from 0d07eb9 to a9f2b24 Compare August 17, 2026 16:13
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.

1 participant