Re: SQL Parser

Jens Rehsack <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
Am 28.04.2014 um 07:28 schrieb Gustavo Castro <[email protected]>:

> Hi! I have a doubt using SQL Parser Module (Link) I need to implement the command "CREATE DATABASE" because this module only implements "CREATE TABLE". Thank you very much for your answer.

Hi,

currently all SQL::Parser based DBD’s support only one Database which has to be specified at connection.
That’s why there’s no need for a „CREATE DATABASE“.

Depending on you’re goals you can derive from SQL::Parser and add support for a create database statement (if you want to continue with SQL::Statement), or - when just parsing is required - check what ribasushi has in his portfolio. IIRC, he has several SQL parsing packages which are much more advanced than SQL::Parser.

Best regards and good luck
-- 
Jens Rehsack
pkgsrc, Perl5
[email protected]
cpanid: REHSACK
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.