Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Refactoring DBD::File in preparation for ReadOnly and streams ...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jens Rehsack  
View profile  
 More options Sep 19 2012, 11:30 am
Newsgroups: perl.dbi.dev
From: rehs...@cpan.org (Jens Rehsack)
Date: Wed, 19 Sep 2012 17:21:32 +0200
Local: Wed, Sep 19 2012 11:21 am
Subject: Refactoring DBD::File in preparation for ReadOnly and streams ...
Hi Merijn,

while hacking around in DBD::File and DBI::DBD::SqlEngine I stumbled
over a major design fault made in the past:

sub DBD::File::Table::get_table_meta () ... evaluates
$dbh->{f_meta}{$table}{initialized} and does something magic else. This
magic is fully DBD::File addicted (heavily relies on file2table) and it
should be broken into separate pieces to differ between initialisation
done for DBI::DBD::SqlEngine and DBD::File and DBD::DBM ...

I'd like to discuss it tomorrow in IRC (but I read my e-Mail if you have
comments at the evening).

If anyone else has ideas - please feel free to speak (but primary
restriction is backward compatibility to avoid breakage of dependent DBD's).

Best regards,
Jens


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"H.Merijn Brand"  
View profile  
 More options Sep 19 2012, 12:00 pm
Newsgroups: perl.dbi.dev
From: h.m.br...@xs4all.nl ("H.Merijn Brand")
Date: Wed, 19 Sep 2012 17:50:02 +0200
Local: Wed, Sep 19 2012 11:50 am
Subject: Re: Refactoring DBD::File in preparation for ReadOnly and streams ...
On Wed, 19 Sep 2012 17:21:32 +0200, Jens Rehsack <rehs...@cpan.org>
wrote:

> Hi Merijn,

> while hacking around in DBD::File and DBI::DBD::SqlEngine I stumbled
> over a major design fault made in the past:

> sub DBD::File::Table::get_table_meta () ... evaluates
> $dbh->{f_meta}{$table}{initialized} and does something magic else. This
> magic is fully DBD::File addicted (heavily relies on file2table) and it
> should be broken into separate pieces to differ between initialisation
> done for DBI::DBD::SqlEngine and DBD::File and DBD::DBM ...

IIRC this was what you already advertised on your first round of
DBD::File internals redesign.

As long as "users" of DBD::File are not harmed, go ahead.

I do not want a truckload of code like
http://repo.or.cz/w/DBD-CSV.git/blob/8d7f4284:/lib/DBD/CSV.pm#l90

which has now been removed as the prereq's are higher:

    PREREQ_PM    => {
        "DBI"            => 1.614,
        "DBD::File"      => 0.40,
        "Text::CSV_XS"   => 0.91,
        "SQL::Statement" => 1.33,
        "Test::More"     => 0.90,
        "Encode"         => 0,
        "charnames"      => 0,
        },

But in future upgrades/updates, code like that is not unlikely to
re-appear

> I'd like to discuss it tomorrow in IRC (but I read my e-Mail if you have
> comments at the evening).

> If anyone else has ideas - please feel free to speak (but primary
> restriction is backward compatibility to avoid breakage of dependent DBD's).

> Best regards,
> Jens

--
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.14   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Rehsack  
View profile  
 More options Sep 20 2012, 4:45 am
Newsgroups: perl.dbi.dev
From: rehs...@gmail.com (Jens Rehsack)
Date: Thu, 20 Sep 2012 10:37:46 +0200
Local: Thurs, Sep 20 2012 4:37 am
Subject: Re: Refactoring DBD::File in preparation for ReadOnly and streams ...
On 19.09.2012 17:50, H.Merijn Brand wrote:

Same place, different construction site ;)

> As long as "users" of DBD::File are not harmed, go ahead.

I have an idea which ensures that. I introduce table local getters and
use the "local" keyword as seen in App::Cmd ;)

> I do not want a truckload of code like
> http://repo.or.cz/w/DBD-CSV.git/blob/8d7f4284:/lib/DBD/CSV.pm#l90

No one wants that - and I think meanwhile you can increase the
prerequisite of DBI version to remove some of that truckload ...

> which has now been removed as the prereq's are higher:

>     PREREQ_PM    => {
>         "DBI"            => 1.614,
>         "DBD::File"      => 0.40,
>         "Text::CSV_XS"   => 0.91,
>         "SQL::Statement" => 1.33,
>         "Test::More"     => 0.90,
>         "Encode"         => 0,
>         "charnames"      => 0,
>         },

> But in future upgrades/updates, code like that is not unlikely to
> re-appear

Well, business as usual ;)

/Jens


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"H.Merijn Brand"  
View profile  
 More options Sep 22 2012, 6:30 am
Newsgroups: perl.dbi.dev
From: h.m.br...@xs4all.nl ("H.Merijn Brand")
Date: Sat, 22 Sep 2012 12:23:08 +0200
Local: Sat, Sep 22 2012 6:23 am
Subject: Re: Refactoring DBD::File in preparation for ReadOnly and streams ...
On Wed, 19 Sep 2012 17:21:32 +0200, Jens Rehsack <rehs...@cpan.org>
wrote:

> Hi Merijn,

> while hacking around in DBD::File and DBI::DBD::SqlEngine I stumbled
> over a major design fault made in the past:

Some - backward compatible - thoughts:

Replace all dir-related parts in DBD::File with callbacks

Make streaming interfaces able to override dir-related parts

Backward compatible AND extendable

> sub DBD::File::Table::get_table_meta () ... evaluates
> $dbh->{f_meta}{$table}{initialized} and does something magic else. This
> magic is fully DBD::File addicted (heavily relies on file2table) and it
> should be broken into separate pieces to differ between initialisation
> done for DBI::DBD::SqlEngine and DBD::File and DBD::DBM ...

> I'd like to discuss it tomorrow in IRC (but I read my e-Mail if you have
> comments at the evening).

> If anyone else has ideas - please feel free to speak (but primary
> restriction is backward compatibility to avoid breakage of dependent DBD's).

> Best regards,
> Jens

--
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.14   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Rehsack  
View profile  
 More options Sep 24 2012, 11:00 am
Newsgroups: perl.dbi.dev
From: rehs...@gmail.com (Jens Rehsack)
Date: Mon, 24 Sep 2012 16:48:56 +0200
Local: Mon, Sep 24 2012 10:48 am
Subject: Re: Refactoring DBD::File in preparation for ReadOnly and streams ...

On 22.09.2012 12:23, H.Merijn Brand wrote:

> On Wed, 19 Sep 2012 17:21:32 +0200, Jens Rehsack <rehs...@cpan.org>
> wrote:

>> Hi Merijn,

>> while hacking around in DBD::File and DBI::DBD::SqlEngine I stumbled
>> over a major design fault made in the past:

> Some - backward compatible - thoughts:

> Replace all dir-related parts in DBD::File with callbacks

> Make streaming interfaces able to override dir-related parts

> Backward compatible AND extendable

First shot attached as committed (svn revert for the win ^^).
Needs some additional tests for streams as well as pod updates.

>> sub DBD::File::Table::get_table_meta () ... evaluates
>> $dbh->{f_meta}{$table}{initialized} and does something magic else. This
>> magic is fully DBD::File addicted (heavily relies on file2table) and it
>> should be broken into separate pieces to differ between initialisation
>> done for DBI::DBD::SqlEngine and DBD::File and DBD::DBM ...

>> I'd like to discuss it tomorrow in IRC (but I read my e-Mail if you have
>> comments at the evening).

>> If anyone else has ideas - please feel free to speak (but primary
>> restriction is backward compatibility to avoid breakage of dependent DBD's).

>> Best regards,
>> Jens

Best regards,
Jens

  patch-data_source
24K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »