racquel icon indicating copy to clipboard operation
racquel copied to clipboard

Get id after save?

Open srfoster opened this issue 5 years ago • 2 comments

After calling (save-data-object ...), is there a way to get the auto-incremented id? I'm getting #f.

Maybe I've set up the data-class wrongly? If this is something that's supposed to work, I'll post my code.

srfoster avatar Aug 20 '19 21:08 srfoster

When you save the date object it should be setting the auto-incremented id in the data object itself once it has been saved.

brown131 avatar Aug 31 '19 02:08 brown131

Okay, thanks. It doesn't appear to be working. But now that I know it should be, I can probably track down the problem.

On Fri, Aug 30, 2019 at 7:08 PM Scott Brown [email protected] wrote:

When you save the date object it should be setting the auto-incremented id in the data object itself once it has been saved.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brown131/racquel/issues/11?email_source=notifications&email_token=AAF2VE6AZIQADCGBOLUSOH3QHHHB3A5CNFSM4IN5NW5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TDEJY#issuecomment-526791207, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF2VE75DKTG3IQ6XVBTSETQHHHB3ANCNFSM4IN5NW5A .

--

Stephen Foster ThoughtSTEM Co-Founder 318-792-2035

srfoster avatar Sep 04 '19 16:09 srfoster