src/snac/server/database/SQL.php
/**
     * Mint a new record id.
     *
     * We always insert a new record, even on update. However, new objects do not have a
     * record id, so we create a table.id from the main sequence id_seq. This is just a centralized place to
     * do that.
     *
     * Also, when inserting a constellation we need a new id, and those ids are generated from the same
     * sequence, so this is used there as well.
     *
     * @return integer A table id from sequence id_seq.
     *
     */
Mint a new record id.
We always insert a new record, even on update. However, new objects do not have a
record id, so we create a table.id from the main sequence id_seq. This is just a centralized place to
do that.

Also, when inserting a constellation we need a new id, and those ids are generated from the same
sequence, so this is used there as well.

@return integer A table id from sequence id_seq.
Mint a new record id . We always insert a new record even on update . However new objects do not have a record id so we create a table . id from the main sequence id_seq . This is just a centralized place to do that . Also when inserting a constellation we need a new id and those ids are generated from the same sequence so this is used there as well . @return integer A table id from sequence id_seq .
private function selectID()
    {
        $result = $this->sdb->query('select nextval(\'id_seq\') as id',array());
        $row = $this->sdb->fetchrow($result);
        return $row['id'];
    }
private function selectID ( ) { $ result = $ this -> sdb -> query ( 'select nextval(\'id_seq\') as id' , array ( ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; return $ row [ 'id' ] ; }
Mint a new record id.
Mint a new record id .