haxetink / tink_sql

SQL embedded into Haxe
MIT License
53 stars 16 forks source link

add ssl field to node driver settings #117

Closed sh-dave closed 4 years ago

sh-dave commented 4 years ago

To connect to a database in azure, SSL options might be required. Using an empty ssl: {} already did the trick for me and typing the whole node tls-options mentioned here felt like overkill for now so i went with Any.

kevinresol commented 4 years ago

I guess you can just use https://github.com/HaxeFoundation/hxnodejs/blob/506d4ed3be1ba47e2fd1b5b83f010745d585392f/src/js/node/tls/SecureContext.hx#L27

kevinresol commented 4 years ago

Is haxe.extern.EitherType not working for you or for any reason this custom abstract is needed?

sh-dave commented 4 years ago

Yes, i didn't know about it until now :sweat_smile:

kevinresol commented 4 years ago

Thanks!