pub trait ConnectorTagInterface {
// Required methods
fn raw_execute<'a>(
&'a self,
query: &'a str,
connection_url: &'a str
) -> Pin<Box<dyn Future<Output = Result<(), TestError>> + 'a>>;
fn datamodel_provider(&self) -> &str;
fn datamodel_renderer(&self) -> Box<dyn DatamodelRenderer>;
fn capabilities(&self) -> ConnectorCapabilities;
// Provided method
fn relation_mode(&self) -> &str { ... }
}
Required Methods§
fn raw_execute<'a>( &'a self, query: &'a str, connection_url: &'a str ) -> Pin<Box<dyn Future<Output = Result<(), TestError>> + 'a>>
sourcefn datamodel_provider(&self) -> &str
fn datamodel_provider(&self) -> &str
The name of the datamodel provider for this connector. Must match valid datamodel provider strings.
sourcefn datamodel_renderer(&self) -> Box<dyn DatamodelRenderer>
fn datamodel_renderer(&self) -> Box<dyn DatamodelRenderer>
Returns the renderer to be used for templating the datamodel (the models portion).
sourcefn capabilities(&self) -> ConnectorCapabilities
fn capabilities(&self) -> ConnectorCapabilities
Capabilities of the implementing connector.
Provided Methods§
sourcefn relation_mode(&self) -> &str
fn relation_mode(&self) -> &str
Defines where relational constraints are handled:
- “prisma” is handled in the Query Engine core
- “foreignKeys” lets the database handle them