-
Notifications
You must be signed in to change notification settings - Fork 32
Conversation
Thanks, the tests are passed now. Let's wait for @arugal review. |
EntClient := entschema.NewClient( | ||
entschema.Driver( | ||
NewDriver(drv, apmDB), | ||
), | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiaohuo473225193 The gen/entschema
seems to be generated based on schema, this plugin does not apply to other schema, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. The plugin is used for all schema definitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But, the NewClient that you have here can only be used for the user schema that you define.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ent can only operate based on the code it generates. NewClient it's the only way in method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NewClient
has nothing to do with the schema definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you demonstrate how to reference ent plugin in the new repository?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually an example, not a specific plugin. This is just one way to access the trace method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is just a reference method provided by Ent access trace. I use this approach in my project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why Merging is blocked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we are not sure whether this is suitable for our project.
We are hosting a plugin if it is out-of-box, rather than an example. Basically, we are confused.
feat: add ent plugin, https://github.com/ent/ent