All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sql.first_free_doc_id.sql Maven / Gradle / Ivy

Go to download

PostgreSQL implementation of a ToroDB backend. This was the original backend implemented in ToroDB, and is also considered as the default ToroDB backend and a reference implementation.

The newest version!
CREATE OR REPLACE FUNCTION torodb.first_free_doc_id(col_schema varchar)
RETURNS integer AS $$
DECLARE
    seq_name varchar := '"' || col_schema || '".root_seq';
BEGIN
    return nextval(seq_name);
END;
$$ LANGUAGE plpgsql;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy