-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
58 lines (40 loc) · 1.17 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Building
========
Windows
=======
To build pymssql on Windows you firstly must have:
* MinGW
* If you wish to use Visual C++ >= 2005 (or some equivalent compiler) then you will have
to compile FreeTDS yourself.
* Python >= 2.5 (From the Python website)
* Cython >= 0.13
and then you can simple run:
python setup.py build
which will build pymssql in the normal python fashion.
Unix
====
To build on Unix you must have:
* gcc
* python-dev >= 2.5
* Cython >= 0.13
* FreeTDS >= 0.82
Testing
=======
To run the tests simply go to the "tests" folder and execute:
python all.py
Which will go through and run all the tests with the default server
settings. If you wish to change these settings you can create a 'tests.cfg'
file in the tests folder that gets read for server settings. This file
should have the format:
[DEFAULT]
server = hostname
username = username
password = password
database = database
[SomeServer]
server = someserver
username = someuser
password = somepass
database = somedb
When this file exists you can run any test specifying a server as the first argument to the command such as:
python all.py SomeServer