1. Multiple Databases with EDS

Rob,

How do I switch between multiple OPEN databases? smile

For instance, I want to open database A, create two tables, then open
database B, create two tables. I want to end up with TWO open databases,
between which I can switch with a simple db_select() command...

I would think with a notion of "current" database that there would be
"non-current," but still OPEN, databases, but maybe I'm wrong.

Thanks!
ck

new topic     » topic index » view message » categorize

2. Re: Multiple Databases with EDS

C.K. Lester writes:
> How do I switch between multiple OPEN databases? smile
> For instance, I want to open database A, create two tables,
> then open database B, create two tables. I want to end up
> with TWO open databases, between which I can switch
> with a simple db_select() command...

Have a look at db_compress() down near the end of database.e.
It has two databases open, and it switches back and forth
between them using db_select(path) to choose the database,
and db_select_table(name) to choose the table. Maybe you
forgot to select a table after switching databases.

> I would think with a notion of "current" database that
> there would be "non-current," but still OPEN, databases,
> but maybe I'm wrong.

You are correct. The databases are still open although you
refer to them by their file path name.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: Multiple Databases with EDS

I looked for db_select in my copy of database.e but couldn't find it. Then I
downloaded the latest version and there it is. Oops.

Thanks!
ck

> RDS said:
>
> Have a look at db_compress() down near the end of database.e.
> It has two databases open, and it switches back and forth
> between them using db_select(path) to choose the database,
> and db_select_table(name) to choose the table. Maybe you
> forgot to select a table after switching databases.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu