Documentation ¶
Index ¶
- type LocalSqlServer
- func (l *LocalSqlServer) ConnectionString(ctx context.Context, req *sqlpb.SqlConnectionStringRequest) (*sqlpb.SqlConnectionStringResponse, error)
- func (l *LocalSqlServer) Query(ctx context.Context, connectionString string, query string) ([]*orderedmap.OrderedMap[string, any], error)
- func (l *LocalSqlServer) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalSqlServer ¶
type LocalSqlServer struct { sqlpb.UnimplementedSqlServer // contains filtered or unexported fields }
func NewLocalSqlServer ¶
func NewLocalSqlServer(projectName string) (*LocalSqlServer, error)
func (*LocalSqlServer) ConnectionString ¶
func (l *LocalSqlServer) ConnectionString(ctx context.Context, req *sqlpb.SqlConnectionStringRequest) (*sqlpb.SqlConnectionStringResponse, error)
func (*LocalSqlServer) Query ¶ added in v1.49.0
func (l *LocalSqlServer) Query(ctx context.Context, connectionString string, query string) ([]*orderedmap.OrderedMap[string, any], error)
create a function that will execute a query on the local database
func (*LocalSqlServer) Stop ¶
func (l *LocalSqlServer) Stop() error
Click to show internal directories.
Click to hide internal directories.