You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sqlserver.rs
    path of file: ./repos/prisma-engines/schema-engine/connectors/sql-schema-connector/src/introspection/datamodel_calculator/context/flavour
    
    the code of the file until where you have to start completion: use std::borrow::Cow;

use sqlparser::{ast::Statement, dialect::MsSqlDialect, parser::Parser};

pub(crate) struct SqlServerIntrospectionFlavour;

impl super::IntrospectionFlavour for SqlServerIntrospectionFlavour {
    fn format_view_definition(&self, definition: &str) -> String {
        let dialect = MsSqlDialect {};

        let stmt = Parser::new(&dialect)
            .try_with_sql(definition)
            .and_then(|mut p| p.parse_statement());

        let definition = match stmt {
            // SQL Server stores the definition as `CREATE VIEW`,
            // but we only want the query part in the definition
            // file as we do with the other databases.
            Ok(Statement::CreateView { query, .. }) => Cow::Owned(format!("{query};")),
            // If we get anything else than `CREA
    
    fn format_view_definition(&self, definition: &str) -> String {
        let dialect = MsSqlDialect {};

        let stmt = Parser::new(&dialect)
            .try_with_sql(definition)
            .and_then(|mut p| p.parse_statement());

        let definition = match stmt {
            // SQL Server stores the definition as `CREATE VIEW`,
            // but we only want the query part in the definition
            // file as we do with the other databases.
            Ok(Statement::CreateView { query, .. }) => Cow::Owned(format!("{query};")),
            // If we get anything else than `CREATE VIEW`,
            // we just print it to a file and hope to get an issue
            // filed if it's wrong.
            _ => Cow::Borrowed(definition),
        };

        let opts = sqlformat::FormatOptions {
            uppercase: true,
            ..Default::default()
        };

        sqlformat::format(&definition, &Default::default(), opts)
    }