Re: Vim scripting - cursor motion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 06/09/2011 08:37 AM, Les Mikesell wrote:
>
> I'd highly recommend perl for this because it can also do the SQL part
> directly via DBI without all of the intermediate contortions you'll have
> to do in files otherwise.  It should take about half a page of your own
> code to connect to the DB, read the file, transform it line-by-line to
> sql and execute the sql statements.  And unlike other approaches with a
> pipeline of different tools, you can generate sensible error messages in
> the right places that have something to do with the input.
>

*AND* by using prepared statements in Perl you don't have to worry about 
escaping the text to prevent accidental SQL injections. It is all 
handled for you.

-- 
Benjamin Franz
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux