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

Postgresql compatibility #72

Open
harmic opened this issue Dec 18, 2024 · 1 comment
Open

Postgresql compatibility #72

harmic opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@harmic
Copy link

harmic commented Dec 18, 2024

Hi,

Is this library compatible with the binary format used by Postgresql?

The readme says it is "inspired by" Postgresql, and the description of the format sounds very similar, but it does not say if it is binary compatible (or even if that is a goal of the project).

The reason I ask is that I am writing a postgresql user defined function in rust and I would like a zero-copy way to work with jsonb fields.
In the tests I have done so far I have not been able to decode any jsonb values that were encoded by Postgresql.

Thanks//

@b41sh b41sh self-assigned this Dec 20, 2024
@b41sh
Copy link
Member

b41sh commented Dec 20, 2024

Hi @harmic Thanks for your attention, this library is indeed inspired by PostgreSQL's jsonb. The basic encoding structure is the same, but there are some differences in the specific implementation. We will consider using dialects to be compatible with more encoding formats, including PostgreSQL, in the near future.

@b41sh b41sh added the feature New feature or request label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants