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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for SqlDataApi-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcff0afc8596cccecabeeb5e12f94d8261971759e1f072751ba7c6e7e8d57625 |
|
MD5 | f6af60533b386db08e2ff0760f611578 |
|
BLAKE2b-256 | 0eca61ddd8054b8192739b7662eef04b1cf3992583990a9b17459fcf775c7563 |