@@ -8,27 +8,28 @@ import "github.com/chdb-io/chdb-go/chdb"
8
8
9
9
## Index
10
10
11
- - [ func Query\( queryStr string, outputFormats ...string\) \* chdbstable.LocalResult ] ( < #Query > )
11
+ - [ func Query\( queryStr string, outputFormats ...string\) \( result chdbpurego.ChdbResult, err error \) ] ( < #Query > )
12
12
- [ type Session] ( < #Session > )
13
13
- [ func NewSession\( paths ...string\) \(\* Session, error\) ] ( < #NewSession > )
14
14
- [ func \( s \* Session\) Cleanup\(\) ] ( < #Session.Cleanup > )
15
15
- [ func \( s \* Session\) Close\(\) ] ( < #Session.Close > )
16
+ - [ func \( s \* Session\) ConnStr\(\) string] ( < #Session.ConnStr > )
16
17
- [ func \( s \* Session\) IsTemp\(\) bool] ( < #Session.IsTemp > )
17
18
- [ 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 > )
19
20
20
21
21
22
<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 > )
23
24
24
25
``` go
25
- func Query (queryStr string , outputFormats ...string ) * chdbstable . LocalResult
26
+ func Query (queryStr string , outputFormats ...string ) ( result chdbpurego . ChdbResult , err error )
26
27
```
27
28
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.
29
30
30
31
<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 >)
32
33
33
34
34
35
@@ -39,7 +40,7 @@ type Session struct {
39
40
```
40
41
41
42
<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 > )
43
44
44
45
``` go
45
46
func NewSession (paths ...string ) (*Session , error )
@@ -48,7 +49,7 @@ func NewSession(paths ...string) (*Session, error)
48
49
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.
49
50
50
51
<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 >)
52
53
53
54
```go
54
55
func (s *Session) Cleanup()
@@ -57,7 +58,7 @@ func (s *Session) Cleanup()
57
58
Cleanup closes the session and removes the directory.
58
59
59
60
<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 >)
61
62
62
63
```go
63
64
func (s *Session) Close()
@@ -69,8 +70,17 @@ Close closes the session and removes the temporary directory
69
70
temporary directory is created when NewSession was called with an empty path.
70
71
```
71
72
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
+
72
82
<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 >)
74
84
75
85
```go
76
86
func (s *Session) IsTemp() bool
@@ -79,7 +89,7 @@ func (s *Session) IsTemp() bool
79
89
IsTemp returns whether the session is temporary.
80
90
81
91
<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 >)
83
93
84
94
```go
85
95
func (s *Session) Path() string
@@ -88,12 +98,12 @@ func (s *Session) Path() string
88
98
Path returns the path of the session.
89
99
90
100
<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 >)
92
102
93
103
```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)
95
105
```
96
106
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.
98
108
99
109
Generated by [gomarkdoc](<https:// github.com/princjef/gomarkdoc>)
0 commit comments