VectorBuckets.utils.ts13 lines · main
| 1 | import { snakeCase } from 'lodash' |
| 2 | |
| 3 | export const getVectorBucketS3KeyName = (bucketId: string) => { |
| 4 | return `${snakeCase(bucketId)}_keys` |
| 5 | } |
| 6 | |
| 7 | export const getVectorBucketFDWServerName = (bucketId: string) => { |
| 8 | return `${getVectorBucketFDWName(bucketId)}_server` |
| 9 | } |
| 10 | |
| 11 | export const getVectorBucketFDWName = (bucketId: string) => { |
| 12 | return `${snakeCase(bucketId)}_fdw` |
| 13 | } |