Turing complete SQL lib?
This probably makes no sense but is there a turing complete sql lib?
I would like to pass in a list and ask the engine to return results that has a match with EVERYTHING in this list of strings and i'll tell you what to join/compare the data.

I guess linq is the answer but i am working with plain old data (class Blah { ID id; string name; SomeClass class; //note this should be treated as a foreign key })

or maybe simple built in functions and or loops i can write in a SQL statement so i can pass the array as a parameter and write a condition inside the SQL statement (as oppose to library).

I have a feeling this will be downvoted.
I am using MySql + C#
Turing complete SQL lib?
===

This probably makes no sense but is there a turing complete sql lib?
I would like to pass in a list and ask the engine to return results that has a match with EVERYTHING in this list of strings and i'll tell you what to join/compare the data.

I guess linq is the answer but i am working with plain old data (class Blah { ID id; string name; SomeClass class; //note this should be treated as a foreign key })

or maybe simple built in functions and or loops i can write in a SQL statement so i can pass the array as a parameter and write a condition inside the SQL statement (as oppose to library).

I have a feeling this will be downvoted.
I am using MySql + C#