Open mihaj opened 1 year ago
This is a PostgreSQL limitation. You couldn't use prepared statements with CREATE TABLE, for example.
In my opinion, your best bet here is probably to just validate the graphName with a strict whitelist regular expression (e.g., "^[a-zA-Z_]+$"), then build the CREATE GRAPH string with it.
I am trying to parameterize Cypher queries in AgensGraph.
I know that Cypher supports some parametrization of parameters, but not sure if this is intended in AgensGraph. For example, I have this code:
I also tried command.CommandText = @"CREATE GRAPH IF NOT EXISTS @graphName;";
And I get back the
Is this even possible with Cypher and NpgsqlCommand?