Fork me on GitHub
#clara
<
2017-09-06
>
mmer20:09:58

Hi there - very simple question - what is the best way to insert a list of records? I am banging my head against a wall - hence the request for help

enn20:09:26

@mmer see insert-all!

mmer20:09:20

I tried that and when I look at the trace it is not inserting anything?

wparker20:09:48

@mmer are you doing this insertion from outside the session or in a rule right-hand side (consequence)?

mmer20:09:00

The problem is that I have a function returning a lazySeq and that is preventing it from being loaded! Thanks -not a clara issue at all.

wparker20:09:14

👍 just for completeness - the ! variants are to be used in rules, the variants without ! are to be used outside the session

mmer22:09:33

Thanks - I got it working - highly nested maps caught me out along with laziness.

mmer22:09:12

I do have another question - in the [:test] block what expressions can be used. For example is the following valid?

mmer22:09:49

I seem to be getting a NullPointer error.

mmer22:09:37

The reason for the NullPointer was that I was passing nil into :test.