1. Packages
  2. Sql Provider
  3. API Docs
  4. getDriver
sql 0.5.0 published on Monday, Apr 14, 2025 by paultyng

sql.getDriver

Explore with Pulumi AI

sql logo
sql 0.5.0 published on Monday, Apr 14, 2025 by paultyng

    The sql.getDriver datasource allows you to determine which driver is in use by the provider. This is mostly useful for module development when you may communicate with multiple types of databases.

    Using getDriver

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDriver(opts?: InvokeOptions): Promise<GetDriverResult>
    function getDriverOutput(opts?: InvokeOptions): Output<GetDriverResult>
    def get_driver(opts: Optional[InvokeOptions] = None) -> GetDriverResult
    def get_driver_output(opts: Optional[InvokeOptions] = None) -> Output[GetDriverResult]
    func GetDriver(ctx *Context, opts ...InvokeOption) (*GetDriverResult, error)
    func GetDriverOutput(ctx *Context, opts ...InvokeOption) GetDriverResultOutput

    > Note: This function is named GetDriver in the Go SDK.

    public static class GetDriver 
    {
        public static Task<GetDriverResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetDriverResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDriverResult> getDriver(InvokeOptions options)
    public static Output<GetDriverResult> getDriver(InvokeOptions options)
    
    fn::invoke:
      function: sql:index/getDriver:getDriver
      arguments:
        # arguments dictionary

    getDriver Result

    The following output properties are available:

    Id string
    This attribute is only present for some compatibility issues and should not be used. It will be removed in a future version.

    Deprecated: Deprecated

    Name string
    The name of the driver, currently this will be one of pgx, mysql, or sqlserver.
    Id string
    This attribute is only present for some compatibility issues and should not be used. It will be removed in a future version.

    Deprecated: Deprecated

    Name string
    The name of the driver, currently this will be one of pgx, mysql, or sqlserver.
    id String
    This attribute is only present for some compatibility issues and should not be used. It will be removed in a future version.

    Deprecated: Deprecated

    name String
    The name of the driver, currently this will be one of pgx, mysql, or sqlserver.
    id string
    This attribute is only present for some compatibility issues and should not be used. It will be removed in a future version.

    Deprecated: Deprecated

    name string
    The name of the driver, currently this will be one of pgx, mysql, or sqlserver.
    id str
    This attribute is only present for some compatibility issues and should not be used. It will be removed in a future version.

    Deprecated: Deprecated

    name str
    The name of the driver, currently this will be one of pgx, mysql, or sqlserver.
    id String
    This attribute is only present for some compatibility issues and should not be used. It will be removed in a future version.

    Deprecated: Deprecated

    name String
    The name of the driver, currently this will be one of pgx, mysql, or sqlserver.

    Package Details

    Repository
    sql paultyng/terraform-provider-sql
    License
    Notes
    This Pulumi package is based on the sql Terraform Provider.
    sql logo
    sql 0.5.0 published on Monday, Apr 14, 2025 by paultyng