Skip to content

Parse TSQL and run it using Queryable

License

Notifications You must be signed in to change notification settings

ykankaya/traficante

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traficante

Parse TSQL and run it using Queryable

          Engine sut = new Engine();
          sut.AddTable("Persons", new Person[] {
              new Person { Id = 1, FirstName = "John", LastName = "Smith" },
              new Person { Id = 2, FirstName = "John", LastName = "Doe" },
              new Person { Id = 2, FirstName = "Joe", LastName = "Block" }
          });

          var resunt = sut.Run("SELECT * FROM Persons WHERE FirstName = 'John'");
          Assert.AreEqual(2, resunt.Count);
          Assert.AreEqual(1, resunt[0][0]);
          Assert.AreEqual("John", resunt[0][1]);
          Assert.AreEqual("Smith", resunt[0][2]);
          Assert.AreEqual(2, resunt[1][0]);
          Assert.AreEqual("John", resunt[1][1]);
          Assert.AreEqual("Doe", resunt[1][2]);
  ```

About

Parse TSQL and run it using Queryable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages