File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,27 @@ from sqlalchemy import create_engine
23
23
engine = create_engine(" iris://_SYSTEM:SYS@localhost:1972/USER" )
24
24
```
25
25
26
+ IRIS Cloud SQL requires SSLContext
27
+
28
+ ``` python
29
+ url = engine.URL .create(
30
+ drivername = " iris" ,
31
+ host = host,
32
+ port = 443 ,
33
+ username = ' SQLAdmin' ,
34
+ password = password,
35
+ database = ' USER' ,
36
+ )
37
+
38
+ sslcontext = ssl.create_default_context(cafile = " certificateSQLaaS.pem" )
39
+
40
+ engine = create_engine(url, connect_args = {" sslcontext" : sslcontext})
41
+ ```
42
+
26
43
InterSystems IRIS
27
44
---
28
45
29
- You can run your instance of InterSystems IRIS Community Edition with Docker
46
+ You can run your instance of InterSystems IRIS Community Edition with Docker
30
47
31
48
``` shell
32
49
docker run -d --name iris \
Original file line number Diff line number Diff line change @@ -902,8 +902,11 @@ def on_connect(conn):
902
902
if self .embedded :
903
903
self .supports_vectors = conn .iris .cls ("%SYSTEM.License" ).GetFeature (28 ) == 1
904
904
else :
905
- iris = IRISNative .createIRIS (conn )
906
- self .supports_vectors = iris .classMethodBoolean ("%SYSTEM.License" , "GetFeature" , 28 )
905
+ try :
906
+ iris = IRISNative .createIRIS (conn )
907
+ self .supports_vectors = iris .classMethodBoolean ("%SYSTEM.License" , "GetFeature" , 28 )
908
+ except : # noqa
909
+ self .supports_vectors = False
907
910
if self .supports_vectors :
908
911
with conn .cursor () as cursor :
909
912
# Distance or similarity
You can’t perform that action at this time.
0 commit comments