Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

ORM Cascading Proposal #41

@nashtsai

Description

@nashtsai

Proposal:

  • new xorm tags for has_one, belongs_to, and has_many relationships
  • new Engine APIs for lazy fetch
  • new xorm tags for specifying eager or lazy fetch, 'lazy', 'eager', 'eager_select'
  • default fetch for has_one is eagerly fetched via join query, can override the default behavior conjunction of 'lazy' tag presence
  • default fetch for has_many is lazy, can override the default behavior with conjunction of 'eager' or 'eager_select' tag, using 'eager' will result join query for fetching has many datas
  • belongs_to is coupled usage with has_many, and default eager fetch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions