kripod / kripod/knex-orm

Composite primary keys

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
61
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Change `Model.idAttribute` to `Model.primaryKey`, and allow it to be a `string[]`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Model.idAttribute entry point and inspect how the primary-key value is read throughout the ORM. Rename the setting to Model.primaryKey, support a string array for composite keys, and verify that existing single-key behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.