Last active
December 27, 2025 23:21
-
-
Save haileyok/fc13bb2d3b2b9adc56ad24595f26bc14 to your computer and use it in GitHub Desktop.
Clickhouse ATProto Functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- CREATE FUNCTION atUriToBskyUrl AS (uri) -> concat( | |
| -- 'https://bsky.app/profile/', | |
| -- arrayElement(splitByChar('/', assumeNotNull(uri)), 3), | |
| -- '/post/', | |
| -- arrayElement(splitByChar('/', assumeNotNull(uri)), 5) | |
| -- ); | |
| CREATE FUNCTION userIdToBskyProfile AS (userId) -> concat( | |
| 'https://bsky.app/profile/', | |
| userId | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment