import _ from '../../_.js';
export default function getPrimaryKey(structure) {
    if (!structure.keys?.PRIMARY?.columns) {
        throw new Error(_('No primary key defined in the structure'));
    }
    const cols = structure.keys.PRIMARY.columns;
    return cols.length > 1 ? cols : cols[0];
}
