1\echo Use "CREATE EXTENSION pg_hashids" to load this file. \quit 2 3-- v1 4CREATE OR REPLACE FUNCTION hash_encode(BIGINT) RETURNS TEXT 5 AS 'pg_hashids', 'id_encode' LANGUAGE C; 6CREATE OR REPLACE FUNCTION hash_encode(BIGINT, TEXT) RETURNS TEXT 7 AS 'pg_hashids', 'id_encode' LANGUAGE C; 8CREATE OR REPLACE FUNCTION hash_encode(BIGINT, TEXT, INT) RETURNS TEXT 9 AS 'pg_hashids', 'id_encode' LANGUAGE C; 10CREATE OR REPLACE FUNCTION hash_decode(TEXT, TEXT, INT) RETURNS INT 11 AS 'pg_hashids', 'id_decode_once' LANGUAGE C; 12 13-- v1.1 14CREATE OR REPLACE FUNCTION id_encode(BIGINT) RETURNS TEXT 15 AS 'pg_hashids', 'id_encode' LANGUAGE C; 16CREATE OR REPLACE FUNCTION id_encode(BIGINT, TEXT) RETURNS TEXT 17 AS 'pg_hashids', 'id_encode' LANGUAGE C; 18CREATE OR REPLACE FUNCTION id_encode(BIGINT, TEXT, INT) RETURNS TEXT 19 AS 'pg_hashids', 'id_encode' LANGUAGE C; 20CREATE OR REPLACE FUNCTION id_encode(BIGINT, TEXT, INT, TEXT) RETURNS TEXT 21 AS 'pg_hashids', 'id_encode' LANGUAGE C; 22 23CREATE OR REPLACE FUNCTION id_encode(BIGINT[]) RETURNS TEXT 24 AS 'pg_hashids', 'id_encode_array' LANGUAGE C; 25CREATE OR REPLACE FUNCTION id_encode(BIGINT[], TEXT) RETURNS TEXT 26 AS 'pg_hashids', 'id_encode_array' LANGUAGE C; 27CREATE OR REPLACE FUNCTION id_encode(BIGINT[], TEXT, INT) RETURNS TEXT 28 AS 'pg_hashids', 'id_encode_array' LANGUAGE C; 29CREATE OR REPLACE FUNCTION id_encode(BIGINT[], TEXT, INT, TEXT) RETURNS TEXT 30 AS 'pg_hashids', 'id_encode_array' LANGUAGE C; 31 32CREATE OR REPLACE FUNCTION id_decode(TEXT) RETURNS BIGINT[] 33 AS 'pg_hashids', 'id_decode' LANGUAGE C; 34CREATE OR REPLACE FUNCTION id_decode(TEXT, TEXT) RETURNS BIGINT[] 35 AS 'pg_hashids', 'id_decode' LANGUAGE C; 36CREATE OR REPLACE FUNCTION id_decode(TEXT, TEXT, INT) RETURNS BIGINT[] 37 AS 'pg_hashids', 'id_decode' LANGUAGE C; 38CREATE OR REPLACE FUNCTION id_decode(TEXT, TEXT, INT, TEXT) RETURNS BIGINT[] 39 AS 'pg_hashids', 'id_decode' LANGUAGE C; 40 41CREATE OR REPLACE FUNCTION id_decode_once(TEXT) RETURNS BIGINT 42 AS 'pg_hashids', 'id_decode_once' LANGUAGE C; 43CREATE OR REPLACE FUNCTION id_decode_once(TEXT, TEXT) RETURNS BIGINT 44 AS 'pg_hashids', 'id_decode_once' LANGUAGE C; 45CREATE OR REPLACE FUNCTION id_decode_once(TEXT, TEXT, INT) RETURNS BIGINT 46 AS 'pg_hashids', 'id_decode_once' LANGUAGE C; 47CREATE OR REPLACE FUNCTION id_decode_once(TEXT, TEXT, INT, TEXT) RETURNS BIGINT 48 AS 'pg_hashids', 'id_decode_once' LANGUAGE C; 49