You are here: In memory database « PHP Programming Language « IT news, forums, messages
In memory database

Posted by ImOk on 06/20/06 13:28

Anyone know of an extension that is an in memory database?

I dont want to create any files on disk (nor install a database engine)
but have an object/variable that points to a database and tables all in
memory. Then to be able to do simple select, insert, deletes and
updates.

This could be easier than using arrays for certain tasks.

Something like this would be nice. E.g.

$db->new memDB('myDB');
$tbl=new memTBL('names')
$tbl->addCol('fname','CHAR',20);
$tbl->addCol('lname','CHAR',20);
$tbl->addCol('dob','DATE');
$tbl->addKey('fname');
$tbl->addKey('lname','fname');
$db->addTable($tbl);

$db->exec("insert into names ('fname',lname','dob') values
('John','Doe','1/1/1900')");
$db->exec("select * from names where fname='John' order by lname");

Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация