1602 / 1602/jugglingdb

Consider removing all instance methods

Open
#449 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
238
PR merge metrics
No merged PRs in 30d

Description

Consider removing all instance methods and only have data in mode instances, ideally data should be sealed/frozen by default

Contributor guide

No contributing guide indexed for this repository

Research direction

This is a major architectural proposal to change JugglingDB's ORM design by removing instance methods and making data immutable. Start by examining the model definitions in lib/schema.js and lib/model.js to understand current instance methods. Look at how models are instantiated and used across adapters like mysql, postgresql, and mongodb. Determine what 'sealed/frozen by default' means in practice and assess the impact on the entire codebase.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
Domain
backend, databases
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.