Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Query ¶
func Query(queryStr string, outputFormats ...string) (result *chdbstable.LocalResult, err error)
Query calls queryToBuffer with a default output format of "CSV" if not provided.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
NewSession creates a new session with the given path. If path is empty, a temporary directory is created. Note: The temporary directory is removed when Close is called.
func (*Session) Cleanup ¶
func (s *Session) Cleanup()
Cleanup closes the session and removes the directory.
func (*Session) Close ¶
func (s *Session) Close()
Close closes the session and removes the temporary directory
temporary directory is created when NewSession was called with an empty path.
func (*Session) Query ¶
func (s *Session) Query(queryStr string, outputFormats ...string) (result *chdbstable.LocalResult, err error)
Query calls queryToBuffer with a default output format of "CSV" if not provided.
Click to show internal directories.
Click to hide internal directories.