db-interface.rb
# Unique is the hash identifying how to find the entry
Unique is the hash identifying how to find the entry
Unique is the hash identifying how to find the entry
def insert_nonexist(table, unique, input)
        id = get_id_existing(table, unique)
        if id == nil
            id = insert(table, input)
        end
        return id
    end
def insert_nonexist ( table , unique , input ) id = get_id_existing ( table , unique ) if id == nil id = insert ( table , input ) end return id end
Unique is the hash identifying how to find the entry
Unique is the hash identifying how to find the entry
# Insert the information
table
<not_specific>
unique
<not_specific>
input
<not_specific>