-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: pocketbase mobile client and types definitions enhancements" #116
Conversation
phoebus-84
commented
Mar 26, 2024
- feat: connet to pocketbase in capacitor framework
- refactor: pocketbase statements and types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust!
I am not totally sure aboutusing Given I connect to 'pb_address' and start pb client ? |
how to create the plugin plugin with connect can be create with p.new('connect', 'start pb client', (ctx: PluginContext) => {
const pb_address = ctx.fetchConnect()[0]
// the rest of the function
}) |
Thanks for this! |
The error seems to the breaking change on ava in v6.0.0
along wiht our redis client that does not disconnect (see redis plugin). But is it a good idea to always connect and disconnect in each statement? |
teardown/setup have different levels, can be at single test level or at test suite. In databases, sometimes is useful to populate some data and then erase it so you have a clean situation after a succesful test run. Sometimes if the setup is something very expensive (maybe some huge data to load, or some expensive cluster of machines/kubernetes setup), then you chain your test to be serial and do tear down of the service at the very end. In general in testing unless very slow, resource usage and performance is not the first argument of interest. In our case I would say that you can open a connection and do the tear down at the end of the @slangroom/redis test-suite |