[mythtv-users] channels.conf

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Apr 2 12:20:44 UTC 2018


On Mon, 2 Apr 2018 12:13:43 +0100, you wrote:

>Ian Campbell <ijc at hellion.org.uk> wrote:
>
>> On Sun, 2018-04-01 at 20:07 +0200, Klaus Becker wrote:
>> There are bindings for the channels table in the Python, Perl and php
>> bindings ...
>> 
>> ... to my shame my own fixup/cleanup script is still written in SQL which runs directly against the DB, which is rather risky ...
>
>What is the difference between directly manipulating the database via Python, Perl, or php - and directly manipulating the database via SQL ? Both have scope for "messing things up" by directly manipulating the data without the safety net of going through MythTV which "should" enforce data consistency etc.

Using the bindings does not directly manipulate the database.  The
normal bindings allow controlled access that enforces validity of the
database.  However, there is still the option of direct database
access via the bindings if you want to use that instead of the normal
bindings.


More information about the mythtv-users mailing list