[mythtv] #10305 heads up, mysql.txt removal + config.xml changes + UPnP fixes
Raymond Wagner
raymond at wagnerrp.com
Fri May 4 06:39:20 UTC 2012
On 5/4/2012 02:26, Karl Dietz wrote:
> On 04.05.2012 08:16, Tim Phipps wrote:
>> Quoting Raymond Wagner <raymond at wagnerrp.com>:
>>> The only value it has for use in bash is when trying to access the
>>> database directly, and if you need to access the database directly,
>>> you can spend the effort writing whatever you're doing in a "proper"
>>> programming language with native MySQL bindings and proper type
>>> handling, rather than something that is just going to clumsily wrap
>>> the `mysql` shell client. Any such language is going to have some form
>>> of XML parser available, and not have any problem dealing with the
>>> config.xml.
>>
>> Please don't take offence but the above comes across as snobbish.
>> "Proper" programming languages come and go, sh is a Posix standard and
>> is here to stay. That said I don't mind mysql.txt going. I'd rather have
>> one setup file and if XML means less chance of errors in reading and
>> writing then that's good. Parsing performance doesn't not matter for the
>> setup file, robustness does. I'm sure it will be possible to find a way
>> to read it into a shell script.
>
> While everything you say is true it doesn't fit together.
> Any proper programming language, whichever that may be, will have
> a proper way to to parse xml and talk to a SQL database. But the Posix
> standard shell will always have to use whatever command line interface
> the mysql tools offer.
That's technically not true. Given sufficient motivation, and a
masochistic fetish, one could natively implement the MySQL
communications protocol and access the file socket directly, or even use
/dev/tcp and interface with a remote server.
More information about the mythtv-dev
mailing list