I'm currently working on a python project that is interacting with a kdb+ database. A future version of the database will have a minor change, and since I can't proceed with my python programming, I thought I'd give it a shot myself instead of waiting for the update from the kdb developer.
I'm working with a mock database that spits out randomly generated symbols that look like this: instr1
,instr2
, instr81
etc.
I have looked around and beleive the symbols are generated by the line .gen.uni:$"instr",/: string til .gen.cfg.uniSize;
The thing I'd like to achieve is for the symbols to be exchangeX.instrY
instead of just instrY
(where X and Y are just some generated numbers).
for convieniece I've changed the line to $"instr",/: string til 4
so my brain doesn't hurt as much.
How would one achieve something like this? I found out about the sv
function thus I've tried many variations of sv ($"exchange",/: string til 4;$"instr",/: string til 4)
but nothing seems to work.
Thanks for your time!
PS: I've removed some backticks here and there because of SO's formatting