-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathREADME
83 lines (43 loc) · 1.62 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Spartacus is a database wrapper for the most widely used RDBMS Python drivers.
Currently, Spartacus supports:
* SQLite
pip install Spartacus
* Memory (in-memory SQLite)
pip install Spartacus
* PostgreSQL
pip install Spartacus[postgresql]
* MySQL
pip install Spartacus[mysql]
* MariaDB
pip install Spartacus[mariadb]
* Firebird
pip install Spartacus[firebird]
* Oracle
# make sure you have Oracle Database or Instant Client installed and configured
pip install Spartacus[oracle]
* MS SQL
sudo apt install freetds-bin freetds-dev
pip install Spartacus[mssql]
* IBM DB2
pip install Spartacus[ibmdb2]
* All supported RDBMS:
pip install Spartacus[complete]
Instantiate this way:
SQLite
v_database = Spartacus.Database.SQLite('../employees.db')
Memory
v_database = Spartacus.Database.Memory()
PostgreSQL
v_database = Spartacus.Database.PostgreSQL('127.0.0.1', '5432', 'employees', 'william', 'password')
MySQL
v_database = Spartacus.Database.MySQL('127.0.0.1', '3306', 'employees', 'root', 'password')
MariaDB
v_database = Spartacus.Database.MariaDB('127.0.0.1', '3306', 'employees', 'root', 'password')
Firebird
v_database = Spartacus.Database.Firebird('127.0.0.1', '3050', '/path/to/employees.fdb', 'sysdba', 'masterkey')
Oracle
v_database = Spartacus.Database.Oracle('127.0.0.1', '1521', 'XE', 'employees', 'password')
Microsoft SQL Server
v_database = Spartacus.Database.MSSQL('127.0.0.1', '1433', 'employees', 'sa', 'password')
IBM DB2
v_database = Spartacus.Database.IBMDB2('127.0.0.1', '50000', 'employes', 'db2inst1', 'password')