@@ -8,27 +8,28 @@ import "github.com/chdb-io/chdb-go/chdb"
88
99## Index
1010
11- - [ func Query\( queryStr string, outputFormats ...string\) \* chdbstable.LocalResult ] ( < #Query > )
11+ - [ func Query\( queryStr string, outputFormats ...string\) \( result chdbpurego.ChdbResult, err error \) ] ( < #Query > )
1212- [ type Session] ( < #Session > )
1313 - [ func NewSession\( paths ...string\) \(\* Session, error\) ] ( < #NewSession > )
1414 - [ func \( s \* Session\) Cleanup\(\) ] ( < #Session.Cleanup > )
1515 - [ func \( s \* Session\) Close\(\) ] ( < #Session.Close > )
16+ - [ func \( s \* Session\) ConnStr\(\) string] ( < #Session.ConnStr > )
1617 - [ func \( s \* Session\) IsTemp\(\) bool] ( < #Session.IsTemp > )
1718 - [ func \( s \* Session\) Path\(\) string] ( < #Session.Path > )
18- - [ func \( s \* Session\) Query\( queryStr string, outputFormats ...string\) \* chdbstable.LocalResult ] ( < #Session.Query > )
19+ - [ func \( s \* Session\) Query\( queryStr string, outputFormats ...string\) \( result chdbpurego.ChdbResult, err error \) ] ( < #Session.Query > )
1920
2021
2122<a name =" Query " ></a >
22- ## func [ Query] ( < https://github.com/chdb-io /chdb-go/blob/main/chdb/wrapper.go#L8 > )
23+ ## func [ Query] ( < https://github.com/agoncear-mwb /chdb-go/blob/main/chdb/wrapper.go#L8 > )
2324
2425``` go
25- func Query (queryStr string , outputFormats ...string ) * chdbstable . LocalResult
26+ func Query (queryStr string , outputFormats ...string ) ( result chdbpurego . ChdbResult , err error )
2627```
2728
28- Query calls queryToBuffer with a default output format of "CSV" if not provided.
29+ Query calls query\_conn with a default in\-memory session and default output format of "CSV" if not provided.
2930
3031<a name="Session"></a>
31- ## type [Session](<https:// github.com/chdb-io /chdb-go/blob/main/chdb/session.go#L11-L14 >)
32+ ## type [Session](<https:// github.com/agoncear-mwb /chdb-go/blob/main/chdb/session.go#L15-L20 >)
3233
3334
3435
@@ -39,7 +40,7 @@ type Session struct {
3940```
4041
4142<a name =" NewSession " ></a >
42- ### func [ NewSession] ( < https://github.com/chdb-io /chdb-go/blob/main/chdb/session.go#L19 > )
43+ ### func [ NewSession] ( < https://github.com/agoncear-mwb /chdb-go/blob/main/chdb/session.go#L25 > )
4344
4445``` go
4546func NewSession (paths ...string ) (*Session , error )
@@ -48,7 +49,7 @@ func NewSession(paths ...string) (*Session, error)
4849NewSession 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.
4950
5051<a name="Session.Cleanup"></a>
51- ### func \(\*Session\) [Cleanup](<https:// github.com/chdb-io /chdb-go/blob/main/chdb/session.go#L57 >)
52+ ### func \(\*Session\) [Cleanup](<https:// github.com/agoncear-mwb /chdb-go/blob/main/chdb/session.go#L77 >)
5253
5354```go
5455func (s *Session) Cleanup()
@@ -57,7 +58,7 @@ func (s *Session) Cleanup()
5758Cleanup closes the session and removes the directory.
5859
5960<a name="Session.Close"></a>
60- ### func \(\*Session\) [Close](<https:// github.com/chdb-io /chdb-go/blob/main/chdb/session.go#L49 >)
61+ ### func \(\*Session\) [Close](<https:// github.com/agoncear-mwb /chdb-go/blob/main/chdb/session.go#L67 >)
6162
6263```go
6364func (s *Session) Close()
@@ -69,8 +70,17 @@ Close closes the session and removes the temporary directory
6970temporary directory is created when NewSession was called with an empty path.
7071```
7172
73+ <a name="Session.ConnStr"></a>
74+ ### func \(\*Session\) [ConnStr](<https:// github.com/agoncear-mwb/chdb-go/blob/main/chdb/session.go#L88>)
75+
76+ ```go
77+ func (s *Session) ConnStr() string
78+ ```
79+
80+ ConnStr returns the current connection string used for the underlying connection
81+
7282<a name="Session.IsTemp"></a>
73- ### func \(\*Session\) [IsTemp](<https:// github.com/chdb-io /chdb-go/blob/main/chdb/session.go#L68 >)
83+ ### func \(\*Session\) [IsTemp](<https:// github.com/agoncear-mwb /chdb-go/blob/main/chdb/session.go#L93 >)
7484
7585```go
7686func (s *Session) IsTemp() bool
@@ -79,7 +89,7 @@ func (s *Session) IsTemp() bool
7989IsTemp returns whether the session is temporary.
8090
8191<a name="Session.Path"></a>
82- ### func \(\*Session\) [Path](<https:// github.com/chdb-io /chdb-go/blob/main/chdb/session.go#L63 >)
92+ ### func \(\*Session\) [Path](<https:// github.com/agoncear-mwb /chdb-go/blob/main/chdb/session.go#L83 >)
8393
8494```go
8595func (s *Session) Path() string
@@ -88,12 +98,12 @@ func (s *Session) Path() string
8898Path returns the path of the session.
8999
90100<a name="Session.Query"></a>
91- ### func \(\*Session\) [Query](<https:// github.com/chdb-io /chdb-go/blob/main/chdb/session.go#L39 >)
101+ ### func \(\*Session\) [Query](<https:// github.com/agoncear-mwb /chdb-go/blob/main/chdb/session.go#L56 >)
92102
93103```go
94- func (s *Session) Query(queryStr string, outputFormats ...string) *chdbstable.LocalResult
104+ func (s *Session) Query(queryStr string, outputFormats ...string) (result chdbpurego.ChdbResult, err error)
95105```
96106
97- Query calls queryToBuffer with a default output format of "CSV" if not provided.
107+ Query calls \`query\_conn\` function with the current connection and a default output format of "CSV" if not provided.
98108
99109Generated by [gomarkdoc](<https:// github.com/princjef/gomarkdoc>)
0 commit comments