List of connection properties?
List of connection properties?
I started to collect all valid switches you can set on a TZConnection.Properties. Before I am digging myself deep inside this - is there a list about this? Separated by libraries, of course.
Cheers!
Cheers!
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
-
- Platinum Boarder
- Posts: 1962
- Joined: 17.01.2011, 14:17
Re: List of connection properties?
Hello and a happy new year
In Zeos 7.3 there are the files core\ZConnProperties.pas and dbc\ZDbcProperties.pas. I seem to rememeber that MySQL has a somewhat generic mechanism. So not all MySQL-related proprties might be in those files.
Best regards,
Jan
In Zeos 7.3 there are the files core\ZConnProperties.pas and dbc\ZDbcProperties.pas. I seem to rememeber that MySQL has a somewhat generic mechanism. So not all MySQL-related proprties might be in those files.
Best regards,
Jan
Re: List of connection properties?
Aaaaand happy new year to you and all the devs of Zeos! Hope it was better for you guys than for me (3mo kid & a dog, none of them are a fan of fireworks...)
So there's no list for it at the moment - that's what I thought. I just did a search for "Info.Values" in all source files and start to go through all entries one by one. I'm interested in all protocols, not just MySQL this time, so though VS Code makes it REALLY easy it will take a while to finish
I'll let you guys know the result so it can be uploaded to the Wiki. Hopefully people will find it useful
So there's no list for it at the moment - that's what I thought. I just did a search for "Info.Values" in all source files and start to go through all entries one by one. I'm interested in all protocols, not just MySQL this time, so though VS Code makes it REALLY easy it will take a while to finish
I'll let you guys know the result so it can be uploaded to the Wiki. Hopefully people will find it useful
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
-
- Platinum Boarder
- Posts: 1962
- Joined: 17.01.2011, 14:17
Re: List of connection properties?
Sounds good. But you should be able to modify the Wiki already - so if you want to, you can do your work in there directly. Also there already is some documentation:
https://sourceforge.net/p/zeoslib/wiki/driver%20parameters/
The list there is very incomplete.
Best regards,
Jan
Re: List of connection properties?
Weird conclusion - there IS a list at the moment! Above-mentioned files contain pretty much generic parameters. Any other ones are driver-specific and are defined in ZPlain*Constants units. This might seem inconsistent but this is the most convenient way to integrate driver-specific props into Zeos. F.ex., if a new MySQL release introduces MYSQL_DO_STUFF parameter, we just add its declaration to TMySqlOption set and that's all, it starts working.
Re: List of connection properties?
My apologies - I meant a list for lazy people (like me ) who don't want to dig through all source files to know all the supported properties. And in this context, no there is none - yet
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Re: List of connection properties?
If you mean docs, then yes you're right
I guess that instead of having two parallel storages of parameters info (sources and wiki) we should better keep everything in sources and just auto-generate wiki page from them.
I guess that instead of having two parallel storages of parameters info (sources and wiki) we should better keep everything in sources and just auto-generate wiki page from them.
Re: List of connection properties?
Long story short, I have an application which allows users to set connection parameters. I do not trust users so I would like my application to offer the possibilities so the user can only choose. To be able to do that I need the list; which I will make if there's none.
At the end of the day if I sacrifice my time for my own needs but the result might be useful for others - it's always a nice thing to share.
I completely do agree with you on the generating part, though.
At the end of the day if I sacrifice my time for my own needs but the result might be useful for others - it's always a nice thing to share.
I completely do agree with you on the generating part, though.
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Re: List of connection properties?
Reasonable wish! But you'll have to define a set of available options anyway (to restrict users from doing something bad) so you'll just need proper descriptions for these options.
-
- Platinum Boarder
- Posts: 1962
- Joined: 17.01.2011, 14:17
Re: List of connection properties?
@aehimself: I will be very grateful about any documentation in any format.
@frost: I would be happy about a workflow like that. But I don't know about a tool for that kind of source code documentation. These are no properties of classes or anything like that. Do you have any suggestion for doing the kind of documentation process you suggest?
Best regards, Jan
@frost: I would be happy about a workflow like that. But I don't know about a tool for that kind of source code documentation. These are no properties of classes or anything like that. Do you have any suggestion for doing the kind of documentation process you suggest?
Best regards, Jan
Re: List of connection properties?
Indeed, that is exactly my plan. Collect the options, and look up the explainations. Based on those I'll choose which one NOT to publish.
- http://dephicodetodoc.sourceforge.netmarsupilami wrote: ↑10.01.2020, 15:33Do you have any suggestion for doing the kind of documentation process you suggest?
- https://github.com/pasdoc/pasdoc/wiki
- http://www.doxygen.nl/index.html
- https://www.doc-o-matic.com/en/index.html
- https://synopse.info/fossil/wiki?name=SynProject
These are the most famous ones, I believe we use Doxygen at work; but I have to doublecheck.
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Re: List of connection properties?
I don't think any existing tool would fit our needs, I thought about some custom script, maybe Python or Node.marsupilami wrote: ↑10.01.2020, 15:33 @frost: I would be happy about a workflow like that. But I don't know about a tool for that kind of source code documentation. These are no properties of classes or anything like that. Do you have any suggestion for doing the kind of documentation process you suggest?
-
- Platinum Boarder
- Posts: 1962
- Joined: 17.01.2011, 14:17
Re: List of connection properties?
Hmmm - the question is, do we really need those descriptions in the source code? They can make reading the source code a mess... Why not do something like files. Like having one directory per driver and one file per option? Maybe some special dir for Zeos wide options?
Code: Select all
opiondocs
+-firebird+interbase
| +fb_protocol.txt
| +WireCompression.txt
| +GUIDDomains.txt
| \...
+mysql
| +MYSQL_SSL.txt
| +MaxLobSize.txt
| \...
\...
Re: List of connection properties?
Dozens of files each containing one or two lines? I don't think it's a good idea
-
- Platinum Boarder
- Posts: 1962
- Joined: 17.01.2011, 14:17
Re: List of connection properties?
Why not? It would Keep everything separate. We also could try to author one document per driver or something like that.
In any case - any documentation is better than no documentaion at all.
Code: Select all
optiondoc
+firebird_interbase.txt
+ASA.txt
+MySQL_MariaDB.txt
\…