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

Using with pg-mem? #2

Open
dforsber opened this issue Jul 19, 2021 · 6 comments
Open

Using with pg-mem? #2

dforsber opened this issue Jul 19, 2021 · 6 comments

Comments

@dforsber
Copy link

Would you mind giving an example on how to create pg-server proxy against pg-mem?

I tried with passing () => newDb().adapters.createPgNative() for createSimpleProxy, but it gives an error when trying to call setNoDelay().

@oguimbal
Copy link
Owner

This is not yet implemented 😑

It requires a refactoring on pg-mem side, which I started, but I did not have the time to finish.

I dont have much time to work on OSS these days, unfortunately. That might change in the future, but I cant tell exactly when this will be supported

@Asaf-S
Copy link

Asaf-S commented Jul 30, 2022

Hey @oguimbal, thx for all of your hard work. This is a very wanted feature, please find the time to complete it or at least draft an orderly request for help...

@oguimbal
Copy link
Owner

oguimbal commented Aug 27, 2022

Hi @Asaf-S, preliminary work on pg-mem is still ongoing (little by little... I'm dedicating time to OSS when I can, which is not that often).

Any help is always welcome, of course (I'm often receiving PRs on pg-mem and pgsql-ast-parser).

The feature that is needed to make this work is pretty hard to implement, though: It is statement preparation & parameters binding.
Long story short: Work is ongoing (parameterized statements parsing & some preliminary work on the executor have been finalized), but it is still requiring a bit of refactoring.

Rest assured that I still have this issue in mind when working on pg-mem (mainly to support connecting Prisma to pg-mem)

@Foxious
Copy link

Foxious commented Jan 17, 2023

has there been any progress on this? I'd absolutely love to use this for testing prisma

@rkristelijn
Copy link

rkristelijn commented Sep 14, 2023

+1

how can I help? How far did you come? Which specific branches would be WIP on this topic for pg-server and pg-mem?

I see oguimbal/pg-mem#360 should be connected.

anyway this is how far I came setting up a stand-alone database server; it doesn't respond ok to a connect command:

https://github.com/rkristelijn/pg-mem-server

@rkristelijn
Copy link

rkristelijn commented Oct 11, 2023

@oguimbal can we please discuss how to move forward on this issue?

E.g. could you share your work so far in a WIP merge request, so I can see what the solution direction is?

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

No branches or pull requests

5 participants