pocketbase icon indicating copy to clipboard operation
pocketbase copied to clipboard

Cut New Version?

Open JBourds opened this issue 2 months ago • 3 comments

Hello, would it be possible for you to cut a new minor version release for this repository? I would like to use the configurable option introduced in commit #10e24f1 but it is not in the latest tagged release and thus not included in the version of this package installed by pip. I am able to manually workaround this by specifying to install from git, but it would be nice if it was easier to do.

JBourds avatar Oct 06 '25 18:10 JBourds

Yeah this would be helpful for me aswell.

It really caught me offguard when working with PocketBase in Python.

Dont know if its just a skill issue, but the conversion back to camelCase doesnt seem to work for me ( or doesnt exist? Which lead to this beautyful masterpiece.

for index, addr in enumerate(addresses):
    if addr.default_language == "":
        print(f"Updating address id {addr.id} to default language 'de' progress : {index + 1}/{len(addresses)}")
        pb.collection("Addresses").update(addr.id,{
            "defaultLanguage": "de"
        })

writing "default_language" instead of defaultLanguage in the update query results in a loss of data without throwing an error

michael-schmid-wlw avatar Oct 23 '25 08:10 michael-schmid-wlw

@michael-schmid-wlw Stunning code.

If you directly install via pip or other package manager it uses the last release from February without this feature, so most likely the auto_snake_case kwarg is just being ignored. I've been directly installing from the main branch with pip install git+https://github.com/vaphes/pocketbase.git to get this feature.

JBourds avatar Oct 23 '25 16:10 JBourds

@michael-schmid-wlw Stunning code.

If you directly install via pip or other package manager it uses the last release from February without this feature, so most likely the auto_snake_case kwarg is just being ignored. I've been directly installing from the main branch with pip install git+https://github.com/vaphes/pocketbase.git to get this feature.

Yeah though if anyone else is reading i suggest version locking, since there may be breaking changes when just pulling from master.

pip install git+https://github.com/vaphes/pocketbase.git@e1fdca5e46ba37662118c89cefcf7b7e14b33ff9

michael-schmid-wlw avatar Oct 24 '25 06:10 michael-schmid-wlw