Sha256: b4db2729ec9c9e0ef6e1b789846ca8507dc87f926d264aa7392190faecf6d1b6

Contents?: true

Size: 288 Bytes

Versions: 16

Compression:

Stored size: 288 Bytes

Contents

CREATE OR REPLACE FUNCTION message_store.cardinal_id(
  stream_name varchar
)
RETURNS varchar
AS $$
DECLARE
  _id varchar;
BEGIN
  _id := id(cardinal_id.stream_name);

  IF _id IS NULL THEN
    RETURN NULL;
  END IF;

  RETURN SPLIT_PART(_id, '+', 1);
END;
$$ LANGUAGE plpgsql
IMMUTABLE;

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
message-db-3.0.0 database/functions/cardinal-id.sql
message-db-2.1.6 database/functions/cardinal-id.sql
message-db-2.1.5 database/functions/cardinal-id.sql
message-db-2.1.4 database/functions/cardinal-id.sql
message-db-2.1.3 database/functions/cardinal-id.sql
message-db-2.1.2 database/functions/cardinal-id.sql
message-db-2.1.1 database/functions/cardinal-id.sql
message-db-2.1.0 database/functions/cardinal-id.sql
message-db-2.0.2 database/functions/cardinal-id.sql
message-db-2.0.1 database/functions/cardinal-id.sql
message-db-2.0.0 database/functions/cardinal-id.sql
message-db-1.1.3 database/functions/cardinal-id.sql
message-db-1.1.2 database/functions/cardinal-id.sql
message-db-1.1.1 database/functions/cardinal-id.sql
message-db-1.1.0 database/functions/cardinal-id.sql
message-db-1.0.0 database/functions/cardinal-id.sql