A way to run queries and execute commands against an MSSQL database.
Project description
# mssql_cli
A way to run queries and execute commands against an MSSQL database.
## Code Example
```python
from mssql_cli import DBRead, DBWrite
read_connection = DBRead(host='some_host', user='some_user', password='some_password', database='some_database')
write_connection = DBWrite(host='some_host', user='some_user', password='some_password', database='some_database')
read_connection.query("SELECT * FROM some_table")
write_connection.query("SELECT * FROM some_table")
write_connection.execute("INSERT INTO some_table VALUES ('some_data', 'some_more_data')")
read_connection.close()
write_connection.close()
```
## Motivation
This library exists to run queries and execute commands against an MSSQL database.
## Installation
This package requires pymssql, which has a dependency on FreeTDS. Instructions on installing FreeTDS can be found here: http://pymssql.org/en/latest/freetds.html.
pip install mssql_cli
## License
MIT
A way to run queries and execute commands against an MSSQL database.
## Code Example
```python
from mssql_cli import DBRead, DBWrite
read_connection = DBRead(host='some_host', user='some_user', password='some_password', database='some_database')
write_connection = DBWrite(host='some_host', user='some_user', password='some_password', database='some_database')
read_connection.query("SELECT * FROM some_table")
write_connection.query("SELECT * FROM some_table")
write_connection.execute("INSERT INTO some_table VALUES ('some_data', 'some_more_data')")
read_connection.close()
write_connection.close()
```
## Motivation
This library exists to run queries and execute commands against an MSSQL database.
## Installation
This package requires pymssql, which has a dependency on FreeTDS. Instructions on installing FreeTDS can be found here: http://pymssql.org/en/latest/freetds.html.
pip install mssql_cli
## License
MIT
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
mssql_cli-0.1.tar.gz
(3.1 kB
view details)
File details
Details for the file mssql_cli-0.1.tar.gz
.
File metadata
- Download URL: mssql_cli-0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 825f403f19ae7d73a1d6c516345087388bd225dc4a8778626a6430d3c94b94a9 |
|
MD5 | ce599b1535c35619df608c982c98f279 |
|
BLAKE2b-256 | a377e1a7a0b47f1190bf431af7baccb767d7f7114d887013757aa6270ef31e6c |