Open wesleywiser opened 9 years ago
Cool! Can you show an example usage? That was stupid. I see it in the center there! This is interesting and I'm excited to see how it develops out.
Side note, kind of, but I think the way the columns are encoded is neat.
I follow what you're doing here but I don't know enough to see where you might take it. At this point I don't know which parts are "obviously" merely part of the sketch and which are locked in. (does not compile for me)
Hi,
I just wanted to post what I've been working on. The code is pretty rough right now since I'm trying to get a very simple working example implemented. Later, that can be expanded to expose more T-SQL syntax. We would also want to make the API nicer to work with, perhaps by using a computation expression to build the AST.
The two important components to note are
update1
which is a SQL UPDATE statement andageConstraint
which models a constraint on thepeople
table. I've started working on some related functions at the bottom which will allow us to figure out which constraints interact with a given query. TODO: generating SQL from the AST but this should be fairly trivial at this point.