Python library for Sql Data Api
Project description
sql-data-api-client-Python
SQL Data Api client for Python
Usage
import sql-data-api-client 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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file sql_data_api-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: sql_data_api-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
57e74d4a48c539704b582289a026f5d293a2310adbb51dc5e3478818603c3d5e
|
|
MD5 |
83c458260753805a073bf6ad110740fe
|
|
BLAKE2b-256 |
2f2085d591eb2b8117f6f01ca8e94c9ec17aff325fcae35f05e9dd341a59dfa9
|