Skip to main content

Python library for Sql Data Api

Project description

sql-data-api-client-Python

SQL Data Api client for Python

Usage

    """Sql Data Api"""
    SqlDataApi.set_api_url("https://localhost:44302")
    SqlDataApi.set_authentication("12121212-token-21121212")

    # query data
    result = SqlDataApi("SQL-Shared").run_query_to_array("test1.Sample100",
        filter="country = @country",
        filter_params={"country": "UK"}
    )
    print(result)

    # save data
    status = SqlDataApi("SQL-Shared").save_array("test1.Sample100", result)
    print(status)

    # execute stored procedure
    sp_res = SqlDataApi("northwind-db-connection").execute_sp_to_array("northwind.NorthwindEmployeesSummary", {'startDate': "2019-01-01", 'endDate': "2020-05-14"})
    print(sp_res)

License

MIT - FalconSoft Ltd

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SqlDataApi-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

SqlDataApi-0.1.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page