Documentation
¶
Index ¶
- type DataChain
- func (c *DataChain) Call(ctx context.Context, values map[string]any, options ...chains.ChainCallOption) (map[string]any, error)
- func (c *DataChain) Close() error
- func (c *DataChain) GetInputKeys() []string
- func (c *DataChain) GetMemory() schema.Memory
- func (c *DataChain) GetOutputKeys() []string
- func (c *DataChain) Run(ctx context.Context, query string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataChain ¶
type DataChain struct {
SQLChain *chains.SQLDatabaseChain
// contains filtered or unexported fields
}
func New ¶
New returns a new TableChain. useAllTables: user all tables or choose by query If you have a lot of tables, you'd better filter out the tables by useAllTables=false, otherwise, the token may execeded token limit .
func (*DataChain) GetInputKeys ¶
GetInputKeys returns the expected input keys.
func (*DataChain) GetOutputKeys ¶
GetOutputKeys returns the output keys the chain will return.
Click to show internal directories.
Click to hide internal directories.