Python library for Sql Data Api
Project description
sql-data-api-client-Python
SQL Data Api client for Python
Usage
pip install sql_data_api_client
import SqlDataApi as sql
"""Sql Data Api"""
sql.SqlDataApi.set_api_url("https://localhost:44302")
sql.SqlDataApi.set_authentication("12121212-token-21121212")
# query data
result = sql.SqlDataApi("SQL-Shared").run_query_to_array("test1.Sample100",
filter="country = @country",
filter_params={"country": "UK"}
)
print(result)
# save data
status = sql.SqlDataApi("SQL-Shared").save_array("test1.Sample100", result)
print(status)
# execute stored procedure
sp_res = sql.SqlDataApi("northwind-db-connection").execute_sp_to_array("northwind.NorthwindEmployeesSummary", {'startDate': "2019-01-01", 'endDate': "2020-05-14"})
print(sp_res)
License
A permissive MIT License (c) 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.7.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for SqlDataApi-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47aef37c217bbcf35d75b24ec9c02ac2080eea041354c6b863d38b506151c092 |
|
MD5 | b9900554abf55a6aaf18c0f35d937313 |
|
BLAKE2b-256 | d0040a43f5402431c1bdc768ddf7c859a488d3e1bc3d5b9abeff0fbe46c6a05a |