This is definitely a hairy situation, and trying to selectively parse
out the "account-1" could certainly lead to issues, since "account-1"
is a perfectly valid string.
I'm not sure the best way to handle this kind of situation.
Perhaps the simple solution, rather than manually tokenizing the
string each time would be a simple function like
boss_db:extract_id(Id), then you could at least use that.
Alternatively, supporting boss_db:find(game_mark, [{AccountId},
{Gameid}]) where AccountId (having the format "account-1"), gets
parsed out as {account_id, equals, IntegerID}.
That might be a reasonable option to add some brevity, though not
entirely sure what folks think of that.
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
chicagoboss...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/chicagoboss/ee64417d-d7f3-43c4-a7f3-750267f240aa%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 ||
sigma-star.com || @jessegumm