|
|
| Author |
Message |
|
| mikl at club-internet.fr |
Posted: Mon Apr 26, 1999 6:21 am |
|
|
|
Guest
|
Hi,
I am trying to figure out how to make work the RDBMS contrib.
I remplaced the mnesia_schema file with the one in the mnesia 3.6
distribution. I made the change marked as 'UW modif' in the
RDBMS-mnesia_schema.
Everything seems to be ok, then. This change makes me able to create
schema, to create table, etc.
But I did not really understand how to use this module. What about the
sysMnesiaDict database ? Do I have to create it manually ?
The add_properties functions return 'ok', but the operation did not seem
to occur. Where are the properties stored ?
Do you have a comprehensive example on how to use it ?
Thanks in advance for your help.
Mickael Remond
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| ulf.wiger at etxb.ericsso |
Posted: Mon Apr 26, 1999 10:38 am |
|
|
|
Guest
|
Mickael Remond wrote:
>
> Hi,
>
> I am trying to figure out how to make work the RDBMS contrib.
>
> I remplaced the mnesia_schema file with the one in the mnesia 3.6
> distribution. I made the change marked as 'UW modif' in the
> RDBMS-mnesia_schema.
>
> Everything seems to be ok, then. This change makes me able to create
> schema, to create table, etc.
>
> But I did not really understand how to use this module. What about the
> sysMnesiaDict database ? Do I have to create it manually ?
> The add_properties functions return 'ok', but the operation did not seem
> to occur. Where are the properties stored ?
>
Oops! I guess you're referring to the following comment in rdbms.erl?
%%
%% Functions for accessing metadata.
%% -- metadata values are stored in the table 'sysMnesiaDict'
%% which has the structure -record(sysMnesiaDict, {key, value}).
%% where key ::= {Obj_type, Obj, Type}, e.g. {attr, {Table, Attr},
Type},
%% {attr, Attr, Type}, {table, Table, Type}, or {record, Rec, Type}.
%%
Never mind that. It's an old relic.
In the olden days, it wasn't possible to store user-defined properties
in the mnesia schema, so I had my own table. Nowadays, the properties go
into the mnesia schema as 'user_properties'.
You can inspect them by calling mnesia:table_info(Tab, user_properties).
> Do you have a comprehensive example on how to use it ?
Let me get back to you on that. I don't have one quite ready, but
perhaps later this week...
/Uffe
--
Ulf Wiger, Chief Designer AXD 301 <ulf.wiger_at_etxb.ericsson.se>
Ericsson Telecom AB tfn: +46 8 719 81 95
Varuv |
|
|
| Back to top |
|
| ulf.wiger at etxb.ericsso |
Posted: Tue Apr 27, 1999 12:21 pm |
|
|
|
Guest
|
Mickael Remond wrote:
>
> I have just begin to play with RDBMS and I think this is a great piece
> of code.
Thank you very much. That was nice to hear.
>
> I hope it will be integrated into mnesia distribution, because this tool
> is really adding a lot of new functionnality.
It surely is an interesting test of the mnesia API to try to tack a
full-featured RDBMS on top of it. ;)
/Uffe
--
Ulf Wiger, Chief Designer AXD 301 <ulf.wiger_at_etxb.ericsson.se>
Ericsson Telecom AB tfn: +46 8 719 81 95
Varuv |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|