database-agent
No long description provided.
Installation
dagger install github.com/ddelnano/database-agent@b5b77301f8db8599718b06081428f1b1817647fdEntrypoint
Return Type
DatabaseAgent Example
dagger -m github.com/ddelnano/database-agent@b5b77301f8db8599718b06081428f1b1817647fd call \
func (m *MyModule) Example() *dagger.DatabaseAgent {
return dag.
DatabaseAgent()
}@function
def example() -> dagger.DatabaseAgent:
return (
dag.database_agent()
)@func()
example(): DatabaseAgent {
return dag
.databaseAgent()
}Types
DatabaseAgent 🔗
ask() 🔗
Ask the database agent a question and get a response
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dbUrl | String ! | - | The database connection URL to use |
| uuid | String ! | - | No description provided |
| question | String | - | The question to ask the database agent |
Example
dagger -m github.com/ddelnano/database-agent@b5b77301f8db8599718b06081428f1b1817647fd call \
ask --db-url string --uuid stringfunc (m *MyModule) Example(ctx context.Context, dbUrl string, uuid string) string {
return dag.
DatabaseAgent().
Ask(ctx, dbUrl, uuid)
}@function
async def example(db_url: str, uuid: str) -> str:
return await (
dag.database_agent()
.ask(db_url, uuid)
)@func()
async example(dbUrl: string, uuid: string): Promise<string> {
return dag
.databaseAgent()
.ask(dbUrl, uuid)
}