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) -> BitFlags<ConnectorCapability>;

    // Provided method
    fn relation_mode(&self) -> &str { ... }
}

Required Methods§

source

fn raw_execute<'a>( &'a self, query: &'a str, connection_url: &'a str ) -> Pin<Box<dyn Future<Output = Result<(), TestError>> + 'a>>

source

fn datamodel_provider(&self) -> &str

The name of the datamodel provider for this connector. Must match valid datamodel provider strings.

source

fn datamodel_renderer(&self) -> Box<dyn DatamodelRenderer>

Returns the renderer to be used for templating the datamodel (the models portion).

source

fn capabilities(&self) -> BitFlags<ConnectorCapability>

Capabilities of the implementing connector.

Provided Methods§

source

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

Implementors§