|
|
| Author |
Message |
|
| cpressey at catseye.mb.ca |
Posted: Fri Feb 09, 2001 7:08 am |
|
|
|
Guest
|
I've run across an error compiling Mnemosyne queries that I don't
understand.
My code looks like this:
...
-record(product,
{
id = 0,
name = "",
description = "",
...
}).
...
mnesia:create_schema([node()]),
mnesia:start(),
mnesia:create_table(product,
[{attributes, record_info(fields, product)}]),
...
F = fun() ->
mnemosyne:eval(query [P.name ||
P <- table(product),
P.name = ProductName
] end)
end,
{atomic, T} = mnesia:transaction(F),
...
When trying to compile this I get the rather unhelpful error message
"mnemosyne query, missing transformation" (on the line containing the
keyword 'query') for which I can find no more detailed description.
(Which surprises me a bit, because this is essentially the example query
given in the Mnesia documentation.)
I'm using the otp_win32_R7B-0.exe release. This can't possibly be a
bug, but I can't think of what I've overlooked in phrasing this query.
Thanks in advance...
_chris
--
Change rules.
Share and Enjoy on Cat's Eye Technologies' Electronic Mailing List
http://www.catseye.mb.ca/list.html
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| hakan at erix.ericsson.se |
Posted: Fri Feb 09, 2001 7:37 am |
|
|
|
Guest
|
On Fri, 9 Feb 2001, Chris Pressey wrote:
Chris> When trying to compile this I get the rather unhelpful error message
Chris> "mnemosyne query, missing transformation" (on the line containing the
Chris> keyword 'query') for which I can find no more detailed description.
Chris> (Which surprises me a bit, because this is essentially the example query
Chris> given in the Mnesia documentation.)
Mnemosyne uses parse transforms to extend the Erlang syntax with
queries. In order to tell the compiler that it should filter its
internal form through Mnemosyne's parse transform function, you need
to add the following line in the beginning of your module:
-include_lib("mnemosyne/include/mnemosyne.hrl").
/H |
|
|
| Back to top |
|
| cpressey at catseye.mb.ca |
Posted: Fri Feb 09, 2001 9:56 am |
|
|
|
Guest
|
Hakan Mattsson wrote:
> On Fri, 9 Feb 2001, Chris Pressey wrote:
> Chris> When trying to compile this I get the rather unhelpful error message
> Chris> "mnemosyne query, missing transformation" [...]
> -include_lib("mnemosyne/include/mnemosyne.hrl").
Thank you. This might be a good thing to point out in the FAQ and/or
section 2.2 of the Mnesia User's Guide.
_chris
--
Change rules.
Share and Enjoy on Cat's Eye Technologies' Electronic Mailing List
http://www.catseye.mb.ca/list.html
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| matthias at corelatus.com |
Posted: Tue Feb 13, 2001 9:52 pm |
|
|
|
Guest
|
Hi,
> > Chris> "mnemosyne query, missing transformation" [...]
> > -include_lib("mnemosyne/include/mnemosyne.hrl").
> Thank you. This might be a good thing to point out in the FAQ and/or
> section 2.2 of the Mnesia User's Guide.
This seems like a good time to ask for a volunteer (with more mnesia
experience than me, i.e. "some") to write a FAQ section or a
standalone FAQ for mnesia.
Matthias
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| wailian |
Posted: Tue Mar 20, 2012 2:16 am |
|
|
|
Guest
|
| i/p transducer requires a standard input and is for use with linear pneumatic actuators and has high air capacity. It can be easy change of the output signal from. electro pneumatic transducer is used, for example, in the biomedical field for the pneumatic control of a cardiac module, or artificial heart. |
|
|
| 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
|
|
|