Hello all, I am back with another question I am stuck on.
I am at a point where my program has two components that I am trying to combine.
One is where I created a legitimate query that I would like to fuzz. For example my program randomly creates the following map:
{:select [:*], :from [:myTable], :join [[:myTable :a1]]}
The second portion takes the table and column names and creates a file, like tables.txt, with a different permutation of the string on every line.
I am stuck on how to combine them.
So I have two lists taken by reading the (long) files.
table = ("my�able" "+my+my+myyTa�me" "myT+/+///v+/v/le" ...
columns = ("name" "nAmme" ...)
and a map:
{:select [:*], :from [:myTable], :join [[:myTable :a1]]}
which after replacing the values will go to a normalization function and be executed.
So how can I iterate through both lists and replace the values in a functional/clojure type way?
for example
{:select [:*], :from [:myTable], :join [[:myTable :a1]]}
to
{:select "name", :from "my�able", :join [[:myTable :a1]]}
to
{:select "nAmme", :from "+my+my+myyTa�me", :join [[:myTable :a1]]}
and so on until I iterate through every item in the lists.
I'm open to any suggestions!
Thanks!