-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factor out into a library. #12
Comments
I agree, this is good practice, and should be done, but am curious as to what you would like to see for an exposed API |
Seems interesting, would be useful indeed. csvdb := textql.load("/path/to/csv", ":", true, 2) // where true is for "header" and 2 is the line textql should start at
//then you could do something like this:
userCount = csvdb.query("select count(users) from tbl where users.idiot = 0") BTW, i love textql and i love you for creating it. Since i know of it i am using it nearly every single day! |
Could also have a LoadStream(), LoadString(), LoadBytes() that would loads from io.Reader, string, and []byte respectively. I feel like other things I would like to do (like creating indexes) could be done with the sql.DB object that is returned. |
This is done for V2, and released |
I definitely have a use for this in my own project. It would be nice if textql was a library I could import, and then you would have a textql/textql directory that contained main.go that would import the library and provide a CLI interface to it.
The text was updated successfully, but these errors were encountered: