chdb

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query(queryStr string, outputFormats ...string) (result chdbpurego.ChdbResult, err error)

Query calls query_conn with a default in-memory session and default output format of "CSV" if not provided.

Types

type Session

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

func NewSession

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) ConnStr added in v1.8.0

func (s *Session) ConnStr() string

ConnStr returns the current connection string used for the underlying connection

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) (result chdbpurego.ChdbResult, err error)

Query calls `query_conn` function with the current connection and a default output format of "CSV" if not provided.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL