Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of domain #105

Open
aimuz opened this issue May 13, 2024 · 0 comments
Open

Definition of domain #105

aimuz opened this issue May 13, 2024 · 0 comments

Comments

@aimuz
Copy link

aimuz commented May 13, 2024

I'm not sure about the definition of domain right now, for usecase, he shouldn't care if the repo is stored by mongo or mysql or some other database as the underlying storage.

For usecase, he needs a detailed data, for example.

type Book struct {
    Name string
    Authors []Author
}

type Author struct {
    Name string
}

This is the simplest tree data, inside Mongo I can easily put it inside an object, whereas inside a relational database I need to put them inside multiple tables.

My question now is, how is domain defined? If it's a tree structure, shouldn't MySQL's Repo implementation also return a tree struct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant