Re: Connecting website with SQL-database.....

Поиск
Список
Период
Сортировка
Искать
От
Manuel Lemos
Тема
Re: Connecting website with SQL-database.....
Дата
Msg-id
3758.143T2716T9396025mlemos@acm.org
Ответ на
Список
Дерево обсуждения
Connecting website with SQL-database..... "J.Post" <J.Post@dtx.nl>
Re: Connecting website with SQL-database..... "Manuel Lemos" <mlemos@acm.org>
Re: Connecting website with SQL-database..... Titus Brown <titus@caltech.edu>
Re: Connecting website with SQL-database..... Thomas Good <tomg@admin.nrnet.org>
Re: Connecting website with SQL-database..... "Manuel Lemos" <mlemos@acm.org>
Re: Connecting website with SQL-database..... Lincoln Yeoh <lylyeoh@mecomb.com>
Re: Connecting website with SQL-database..... "Manuel Lemos" <mlemos@acm.org>
Re: Connecting website with SQL-database..... Lincoln Yeoh <lylyeoh@mecomb.com>
Re: Connecting website with SQL-database..... "Manuel Lemos" <mlemos@acm.org>
Re: Connecting website with SQL-database..... Alex Pilosov <alex@pilosoft.com>
Re: Connecting website with SQL-database..... "Manuel Lemos" <mlemos@acm.org>
Hello Thomas,

On 18-Apr-00 09:42:25, you wrote:

>> For a good discussion of some of the alternatives (centered around but
>> not limited to AOLserver) you can visit photo.net/wtr/, the Web/db
>> bulletin board.
>> 
>> Not that I recommend anything in particular for your specific situation, 
>> but it's always a good idea to get an idea of what's out there.

>I use Perl DBI::DBD with the "singing, dancing" CGI module.  I'm happy with
>it. If you'd like, visit my site:  www.opensystems.org and the links will
>assist you in downloading the various perl modules.  There are samples there
>too.
>(DBI and CGI).

I may be mistaken, but the last time that I looked at Perl DBI, it didn't
seem to a complete database abstraction layer than it is needed.  For
instance, you want retrieve data from date fields the results come
formatted in a database dependent way.  This means that your DBI
applications can't really be that much database independent as you still
have to handle datatype differences in the application code.

With this Metabase package in PHP date fields are always returned formatted
in the industry standard ISO 3166 (YYYY-MM-DD HH:MI:SS).  Then you do
whatever processing you want with dates formatted this way, but it's always
DBMS independent.

Another thing that seems to be lacking in DBI and other database abstraction
layers is support for DBMS independent schema installation.  I mean if you
want to install a given database schema (tables, fields, indexes,
sequences) you still have to hand code database dependent SQL commands to
create them.

As I explained before, with this Metabase PHP package you only need to
describe the database schema in a custom XML format that looks like this:




 test
 1

 
  users
  
    user_id   integer 0 1 
    user_name text                                              
    password  text                                              
    reminder  text                                              
    name      text                                              
    email     text                                              
   
    users_id_index
    1
     user_id 
   
  
 
user_id 1 users
user_id Metabase will install this schema description on any SQL based database. Furthermore, if you change the schema later you may tell Metabase to apply the changes without affected any data that was added to the database afterwards. There are other neat features like support for requesting just a range of rows of a SELECT query. In some DBMS it would be as simple as specifying the LIMIT clause, but it is not that simple in many others. Metabase abstracts all that for you because those are desirable features that all database abstraction layers should provide. As I mentioned before, you may find more information about it here: http://phpclasses.UpperDesign.com/browse.html/package/20 Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org -- E-mail: mlemos@acm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
В списке pgsql-general по дате отправления
От: Samy Elashmawy
Дата:
Сообщение: Re: Win32 Install
От: rcook@Bix.Com
Дата:
Сообщение: What are your using it for?
FAQ