GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add "trimPrefix" and "trimSuffix" SQL Methods by gramian · Pull Request #1686 · ArcadeData/arcadedb

Conversation

@gramian

@gramian gramian commented Aug 10, 2024

Copy link
Copy Markdown
Collaborator

What does this PR do?

This change adds two SQL methods aimed at strings:

  • .trimPrefix
  • .trimSuffix

These methods remove a string argument from the front or back of the base object respectively if it exists, otherwise returns the (stringified) base object as-is.

Motivation

Inspired by Connect for data cleaning purposes.

Checklist

  • I have run the build using mvn clean package command
  • My unit tests cover both failure and success scenarios (only success)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gramian added 2 commits August 10, 2024 20:35
@gramian
Add trimPrefix and trimSuffix SQL methods
ee88505
@gramian
add trimXXXfix tests
40288e7
@lvca
lvca merged commit 0e2edcd into ArcadeData:main Aug 11, 2024
@lvca

lvca commented Aug 11, 2024

Copy link
Copy Markdown
Member

Thanks @gramian !

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lvca
lvca self-requested a review August 11, 2024 15:32
@lvca lvca assigned gramian Aug 11, 2024
@lvca lvca added this to the 24.8.1 milestone Aug 11, 2024
@lvca lvca added the enhancement New feature or request label Aug 11, 2024
mergify Bot added a commit that referenced this pull request Dec 14, 2025
@mergify
chore(deps): bump actions/cache from 4.3.0 to 5.0.1 [skip ci]
6376228
Bumps [actions/cache](https://github.com/actions/cache) from 4.3.0 to 5.0.1.
Release notes

*Sourced from [actions/cache's releases](https://github.com/actions/cache/releases).*

> v5.0.1
> ------
>
> > [!IMPORTANT]
> > **`actions/cache@v5` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`.**
> >
> > If you are using self-hosted runners, ensure they are updated before upgrading.
>
> ---
>
> v5.0.1
> ======
>
> What's Changed
> --------------
>
> * fix: update `@​actions/cache` for Node.js 24 punycode deprecation by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1685](https://redirect.github.com/actions/cache/pull/1685)
> * prepare release v5.0.1 by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1686](https://redirect.github.com/actions/cache/pull/1686)
>
> v5.0.0
> ======
>
> What's Changed
> --------------
>
> * Upgrade to use node24 by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1630](https://redirect.github.com/actions/cache/pull/1630)
> * Prepare v5.0.0 release by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1684](https://redirect.github.com/actions/cache/pull/1684)
>
> **Full Changelog**: <actions/cache@v5...v5.0.1>
>
> v5.0.0
> ------
>
> > [!IMPORTANT]
> > **`actions/cache@v5` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`.**
> >
> > If you are using self-hosted runners, ensure they are updated before upgrading.
>
> ---
>
> What's Changed
> --------------
>
> * Upgrade to use node24 by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1630](https://redirect.github.com/actions/cache/pull/1630)
> * Prepare v5.0.0 release by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1684](https://redirect.github.com/actions/cache/pull/1684)
>
> **Full Changelog**: <actions/cache@v4.3.0...v5.0.0>


Changelog

*Sourced from [actions/cache's changelog](https://github.com/actions/cache/blob/main/RELEASES.md).*

> Releases
> ========
>
> Changelog
> ---------
>
> ### 5.0.1
>
> * Update `@azure/storage-blob` to `^12.29.1` via `@actions/[email protected]` [#1685](https://redirect.github.com/actions/cache/pull/1685)
>
> ### 5.0.0
>
> > [!IMPORTANT]
> > `actions/cache@v5` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`.
> > If you are using self-hosted runners, ensure they are updated before upgrading.
>
> ### 4.3.0
>
> * Bump `@actions/cache` to [v4.1.0](https://redirect.github.com/actions/toolkit/pull/2132)
>
> ### 4.2.4
>
> * Bump `@actions/cache` to v4.0.5
>
> ### 4.2.3
>
> * Bump `@actions/cache` to v4.0.3 (obfuscates SAS token in debug logs for cache entries)
>
> ### 4.2.2
>
> * Bump `@actions/cache` to v4.0.2
>
> ### 4.2.1
>
> * Bump `@actions/cache` to v4.0.1
>
> ### 4.2.0
>
> TLDR; The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs.
>
> The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these release are **fully backward compatible**.
>
> **We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below).
>
> If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0`
>
> If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail.
>
> Upgrading to the recommended versions will not break your workflows.
>
> ### 4.1.2

... (truncated)


Commits

* [`9255dc7`](actions/cache@9255dc7) Merge pull request [#1686](https://redirect.github.com/actions/cache/issues/1686) from actions/cache-v5.0.1-release
* [`8ff5423`](actions/cache@8ff5423) chore: release v5.0.1
* [`9233019`](actions/cache@9233019) Merge pull request [#1685](https://redirect.github.com/actions/cache/issues/1685) from salmanmkc/node24-storage-blob-fix
* [`b975f2b`](actions/cache@b975f2b) fix: add peer property to package-lock.json for dependencies
* [`d0a0e18`](actions/cache@d0a0e18) fix: update license files for `@​actions/cache`, fast-xml-parser, and strnum
* [`74de208`](actions/cache@74de208) fix: update `@​actions/cache` to ^5.0.1 for Node.js 24 punycode fix
* [`ac7f115`](actions/cache@ac7f115) peer
* [`b0f846b`](actions/cache@b0f846b) fix: update `@​actions/cache` with storage-blob fix for Node.js 24 punycode depr...
* [`a783357`](actions/cache@a783357) Merge pull request [#1684](https://redirect.github.com/actions/cache/issues/1684) from actions/prepare-cache-v5-release
* [`3bb0d78`](actions/cache@3bb0d78) docs: highlight v5 runner requirement in releases
* Additional commits viewable in [compare view](actions/cache@0057852...9255dc7)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=actions/cache&package-manager=github\_actions&previous-version=4.3.0&new-version=5.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
@gramian
Add "trimPrefix" and "trimSuffix" SQL Methods (ArcadeData#1686)
c33b360
* Add trimPrefix and trimSuffix SQL methods

* add trimXXXfix tests
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
@mergify
chore(deps): bump actions/cache from 4.3.0 to 5.0.1 [skip ci]
0f7324a
Bumps [actions/cache](https://github.com/actions/cache) from 4.3.0 to 5.0.1.
Release notes

*Sourced from [actions/cache's releases](https://github.com/actions/cache/releases).*

> v5.0.1
> ------
>
> > [!IMPORTANT]
> > **`actions/cache@v5` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`.**
> >
> > If you are using self-hosted runners, ensure they are updated before upgrading.
>
> ---
>
> v5.0.1
> ======
>
> What's Changed
> --------------
>
> * fix: update `@​actions/cache` for Node.js 24 punycode deprecation by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1685](https://redirect.github.com/actions/cache/pull/1685)
> * prepare release v5.0.1 by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1686](https://redirect.github.com/actions/cache/pull/1686)
>
> v5.0.0
> ======
>
> What's Changed
> --------------
>
> * Upgrade to use node24 by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1630](https://redirect.github.com/actions/cache/pull/1630)
> * Prepare v5.0.0 release by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1684](https://redirect.github.com/actions/cache/pull/1684)
>
> **Full Changelog**: <actions/cache@v5...v5.0.1>
>
> v5.0.0
> ------
>
> > [!IMPORTANT]
> > **`actions/cache@v5` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`.**
> >
> > If you are using self-hosted runners, ensure they are updated before upgrading.
>
> ---
>
> What's Changed
> --------------
>
> * Upgrade to use node24 by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1630](https://redirect.github.com/actions/cache/pull/1630)
> * Prepare v5.0.0 release by [`@​salmanmkc`](https://github.com/salmanmkc) in [actions/cache#1684](https://redirect.github.com/actions/cache/pull/1684)
>
> **Full Changelog**: <actions/cache@v4.3.0...v5.0.0>


Changelog

*Sourced from [actions/cache's changelog](https://github.com/actions/cache/blob/main/RELEASES.md).*

> Releases
> ========
>
> Changelog
> ---------
>
> ### 5.0.1
>
> * Update `@azure/storage-blob` to `^12.29.1` via `@actions/[email protected]` [ArcadeData#1685](https://redirect.github.com/actions/cache/pull/1685)
>
> ### 5.0.0
>
> > [!IMPORTANT]
> > `actions/cache@v5` runs on the Node.js 24 runtime and requires a minimum Actions Runner version of `2.327.1`.
> > If you are using self-hosted runners, ensure they are updated before upgrading.
>
> ### 4.3.0
>
> * Bump `@actions/cache` to [v4.1.0](https://redirect.github.com/actions/toolkit/pull/2132)
>
> ### 4.2.4
>
> * Bump `@actions/cache` to v4.0.5
>
> ### 4.2.3
>
> * Bump `@actions/cache` to v4.0.3 (obfuscates SAS token in debug logs for cache entries)
>
> ### 4.2.2
>
> * Bump `@actions/cache` to v4.0.2
>
> ### 4.2.1
>
> * Bump `@actions/cache` to v4.0.1
>
> ### 4.2.0
>
> TLDR; The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs.
>
> The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these release are **fully backward compatible**.
>
> **We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below).
>
> If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0`
>
> If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail.
>
> Upgrading to the recommended versions will not break your workflows.
>
> ### 4.1.2

... (truncated)


Commits

* [`9255dc7`](actions/cache@9255dc7) Merge pull request [ArcadeData#1686](https://redirect.github.com/actions/cache/issues/1686) from actions/cache-v5.0.1-release
* [`8ff5423`](actions/cache@8ff5423) chore: release v5.0.1
* [`9233019`](actions/cache@9233019) Merge pull request [ArcadeData#1685](https://redirect.github.com/actions/cache/issues/1685) from salmanmkc/node24-storage-blob-fix
* [`b975f2b`](actions/cache@b975f2b) fix: add peer property to package-lock.json for dependencies
* [`d0a0e18`](actions/cache@d0a0e18) fix: update license files for `@​actions/cache`, fast-xml-parser, and strnum
* [`74de208`](actions/cache@74de208) fix: update `@​actions/cache` to ^5.0.1 for Node.js 24 punycode fix
* [`ac7f115`](actions/cache@ac7f115) peer
* [`b0f846b`](actions/cache@b0f846b) fix: update `@​actions/cache` with storage-blob fix for Node.js 24 punycode depr...
* [`a783357`](actions/cache@a783357) Merge pull request [ArcadeData#1684](https://redirect.github.com/actions/cache/issues/1684) from actions/prepare-cache-v5-release
* [`3bb0d78`](actions/cache@3bb0d78) docs: highlight v5 runner requirement in releases
* Additional commits viewable in [compare view](actions/cache@0057852...9255dc7)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=actions/cache&package-manager=github\_actions&previous-version=4.3.0&new-version=5.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lvca lvca Awaiting requested review from lvca

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gramian gramian

Labels

enhancement New feature or request

Projects

None yet

Milestone

24.10.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@gramian @lvca
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.