| Auteur | Message |
|---|---|
|
le: 01. 06. 2004 [15:41]
|
|
|
ncesar@lunix.com.ar
Nicolas D. Cesar
Auteur du fil
Inscrit depuis: 31.12.1969
Interventions: 0
|
I'm sorry if this is not the proper list. If so, just ignore this message a= nd=20 send me a suggestion where i should post. I'm trying malete 0.9.9c, I don't know much of the WinIsis project, but I'= m=20 migrating WinIsis data to a site, and i have a huge problem... where can I= =20 find good documentation? They are giving me the folowing files: cepal.any cepal.cnt cepal.fdt cepal.fst cepal.ifp cepal.l01 cepal.l02 cepal.mst cepal.n01 cepal.n02 cepal.pft cepal.stw cepal.xrf cscana.fmt csccol.fmt cscmin.fmt cscmon.fmt cscser.fmt dcepal.fmt dscana.fmt dsccol.fmt dscmin.fmt dscmon.fmt dscser.fmt ecepal.fmt but ANY of these are usefull to malete?? in the demo I just see cds.mqt and= =20 cds.mrd. How can I use some files from above, to query (I just need to query... not= =20 inserts or updates or deletes) the database?? If I can't, how can I create *mqt and/or *mrd? Thanks in advance =2D-=20 Nicol=E1s D. C=E9sar <ncesar@lunix.com.ar> Lunix [ Soluciones en GNU/Linux ] http://www.lunix.com.ar ------------------------------------------ Posted to Phorum via PhorumMail |
|
le: 02. 06. 2004 [05:42]
|
|
|
paul@malete.org
Klaus Ripke
Inscrit depuis: 31.12.1969
Interventions: 0
|
Hello On Tuesday 01 June 2004 22:41, you wrote: > I'm trying malete 0.9.9c, I don't know much of the WinIsis project, bu= t > I'm migrating WinIsis data to a site, and i have a huge problem... wher= e > can I find good documentation? To convert the CDS/ISIS format to Malete format, use cdsimp as described in http://malete.org/Doc/CDS c.f. also http://malete.org/Doc/CmdLine > They are giving me the folowing files: you need only the files containing actual data records and index entries, which are: > cepal.cnt > cepal.ifp > cepal.l01 > cepal.l02 > cepal.mst > cepal.n01 > cepal.n02 > cepal.xrf In a directory containing these files, issue path/to/malete cdsimp cepal which should create files cepal.mrd, .mrx, .mqd and .mqx Check cepal.mrd using some editor, it's a plain text file. > How can I use some files from above, to query (I just need to query... = not > inserts or updates or deletes) the database?? If you are only going for queries, ou may also want to consider using http://openisis.org/tar/openisis.0.9.1.tgz, which can operate (read only) directly from your files without the conversion step. This also supports Braulio's PHP Isis package. With Malete, you would have to use the provided Isis.pm package. cheers Klaus ------------------------------------------ Posted to Phorum via PhorumMail |
|
le: 02. 06. 2004 [12:12]
|
|
|
ncesar@lunix.com.ar
Nicolas D. Cesar
Auteur du fil
Inscrit depuis: 31.12.1969
Interventions: 0
|
El Mi=E9rcoles 02 Junio 2004 07:42, Klaus Ripke escribi=F3: > you need only the files containing actual data records > and index entries, which are: > > cepal.cnt > > cepal.ifp > > cepal.l01 > > cepal.l02 > > cepal.mst > > cepal.n01 > > cepal.n02 > > cepal.xrf thanks for the tip! I didn't know anything=20 > In a directory containing these files, issue > path/to/malete cdsimp cepal > which should create files > cepal.mrd, .mrx, .mqd and .mqx EXCELENT!! worked just fine. I'll be using this for a while.=20 I've just extended Rec.php functionality. with a function that I called=20 getHash()... heer is the usefull (and simple) code: /** return the hash association between tags and values that is array( tagnumber =3D> value, tagnumber =3D> value) similar functionality to old isis_fetch_array($result) @return an array similar to array( tagnumber =3D> value,=20 tagnumber =3D> value) */ function getHash()=20 { $ret =3D array(); foreach (array_keys($this->tag) as $num) { $ret[$this->tag[$num]] =3D $this->val[$num]; } return $ret; } Greetings, =2D-=20 Nicol=E1s D. C=E9sar <ncesar@lunix.com.ar> Lunix [ Soluciones en GNU/Linux ] http://www.lunix.com.ar ------------------------------------------ Posted to Phorum via PhorumMail |
|
le: 03. 06. 2004 [04:48]
|
|
|
paul@malete.org
Klaus Ripke
Inscrit depuis: 31.12.1969
Interventions: 0
|
Hi all let me comment on this: On Wednesday 02 June 2004 19:12, Nicolas D. Cesar wrote: > function getHash() Of course using a record as a simple tag =3D> val hash breaks many advanced features like repeatable fields and any kind of embedded record. However, if you know your application is always going to treat data that way, than it is much more simple, efficient and convenient to use than the more general concept. The idea now is that you can easily write your little client library, based on the existing or from scratch, since the server protocol is so simple and easy to interface. Basically you would just need to adjust the parse method to directly create a tag =3D> val hash. To some extend this would even work in parallel to the existing class. It is perfectly valid to have very different views on the same issue! For example some afficionados of the document object model might expect their data to always contain delimited structures and create some object tree. enjoy ------------------------------------------ Posted to Phorum via PhorumMail |