예제 #1
0
def clean_and_copy_sqltoolsservice(platform):
    """
        Cleans the SqlToolsService directory and copies over the SqlToolsService binaries for the given platform.
        :param platform: string
    """
    mssqltoolsservice.clean_up_sqltoolsservice()
    mssqltoolsservice.copy_sqltoolsservice(platform)
예제 #2
0
def copy_current_platform_mssqltoolsservice():
    """
    Copy the necessary mssqltoolsservice binaries for the current platform if supported.
    """
    import mssqlcli.mssqltoolsservice.externals as mssqltoolsservice

    current_platform = get_current_platform()
    if current_platform:
        mssqltoolsservice.copy_sqltoolsservice(current_platform)
    else:
        print("This platform: {} does not support mssqltoolsservice.".format(
            platform.system()))