Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread embedded tables
Sun, Aug 16 2009 5:47 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Would it be possible for EDBManager to open ElevateDB tables embedded in BLOB fields?

Roy Lambert
Wed, Aug 19 2009 4:01 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Would it be possible for EDBManager to open ElevateDB tables embedded in
BLOB fields? >>

How are they being embedded ?  In raw format or stream format ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Aug 20 2009 3:25 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


procedure ReturnTableToMemo(Fld: string; SrcTbl, DestTbl: TnlhTable);
var
ms: TMemoryStream;
WasEditing: boolean;
begin
ms := TMemoryStream.Create;
try
 WasEditing := (DestTbl.State in dsEditModes);
 if not WasEditing then GetRecordLock(DestTbl, 200);
 if SrcTbl.RecordCount > 0 then begin
  SrcTbl.SaveToStream(ms);
  TMemoField(DestTbl.FieldByName(Fld)).LoadFromStream(ms)
 end else DestTbl.FieldByName(Fld).Clear;
 if not WasEditing then DestTbl.Post;
finally
 ms.Free;
end;
end;


Roy Lambert
Thu, Aug 20 2009 12:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

Okay, I'll see about adding stream support to the EDB Manager.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Aug 20 2009 1:32 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


Now I know what mine is - what's raw?

Roy Lambert
Thu, Aug 20 2009 6:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Now I know what mine is - what's raw? >>

Storing the table in its actual disk format, with the different files that
make up the table stored one after the other.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Aug 20 2009 8:38 PMPermanent Link

Charalampos Michael
Dear Tim,

> << Would it be possible for EDBManager to open ElevateDB tables embedded in
> BLOB fields? >>
>
> How are they being embedded ?  In raw format or stream format ?

Well, Stream support is faster and better isn't ?

--
Charalampos Michael - [Creation Power] - http://www.creationpower.gr
Fri, Aug 21 2009 11:46 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Well, Stream support is faster and better isn't ? >>

Better, but not necessarily faster.  However, it is almost impossible to
deal with table files in raw form now anyways without including the database
catalog in the mix, so the streaming way is the only practical way to do
this.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image