Skip to content

Latest commit

 

History

History
99 lines (67 loc) · 2.79 KB

chdb.md

File metadata and controls

99 lines (67 loc) · 2.79 KB

chdb

import "github.com/chdb-io/chdb-go/chdb"

Index

func Query

func Query(queryStr string, outputFormats ...string) *chdbstable.LocalResult

Query calls queryToBuffer with a default output format of "CSV" if not provided.

type Session

type Session struct {
    // contains filtered or unexported fields
}

func NewSession(paths ...string) (*Session, error)

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) IsTemp

func (s *Session) IsTemp() bool

IsTemp returns whether the session is temporary.

func (*Session) Path

func (s *Session) Path() string

Path returns the path of the session.

func (*Session) Query

func (s *Session) Query(queryStr string, outputFormats ...string) *chdbstable.LocalResult

Query calls queryToBuffer with a default output format of "CSV" if not provided.

Generated by gomarkdoc