Documentation ¶
Index ¶
- type Repository
- func (r *Repository) AddRoutineByMetaData(ctx context.Context, tx *connection.Tx, routine *bigqueryv2.Routine) error
- func (r *Repository) AddTableData(ctx context.Context, tx *connection.Tx, projectID, datasetID string, ...) error
- func (r *Repository) CreateOrReplaceTable(ctx context.Context, tx *connection.Tx, projectID, datasetID string, ...) error
- func (r *Repository) CreateTable(ctx context.Context, tx *connection.Tx, table *bigqueryv2.Table) error
- func (r *Repository) CreateView(ctx context.Context, tx *connection.Tx, table *bigqueryv2.Table) error
- func (r *Repository) DeleteTables(ctx context.Context, tx *connection.Tx, projectID, datasetID string, ...) error
- func (r *Repository) Query(ctx context.Context, tx *connection.Tx, projectID, datasetID, query string, ...) (*internaltypes.QueryResponse, error)
- type RoutineLanguageType
- type RoutineType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *sql.DB) *Repository
func (*Repository) AddRoutineByMetaData ¶
func (r *Repository) AddRoutineByMetaData(ctx context.Context, tx *connection.Tx, routine *bigqueryv2.Routine) error
func (*Repository) AddTableData ¶
func (r *Repository) AddTableData(ctx context.Context, tx *connection.Tx, projectID, datasetID string, table *types.Table) error
func (*Repository) CreateOrReplaceTable ¶
func (r *Repository) CreateOrReplaceTable(ctx context.Context, tx *connection.Tx, projectID, datasetID string, table *types.Table) error
func (*Repository) CreateTable ¶ added in v0.1.2
func (r *Repository) CreateTable(ctx context.Context, tx *connection.Tx, table *bigqueryv2.Table) error
func (*Repository) CreateView ¶ added in v0.2.13
func (r *Repository) CreateView(ctx context.Context, tx *connection.Tx, table *bigqueryv2.Table) error
func (*Repository) DeleteTables ¶
func (r *Repository) DeleteTables(ctx context.Context, tx *connection.Tx, projectID, datasetID string, tableIDs []string) error
func (*Repository) Query ¶
func (r *Repository) Query(ctx context.Context, tx *connection.Tx, projectID, datasetID, query string, params []*bigqueryv2.QueryParameter) (*internaltypes.QueryResponse, error)
type RoutineLanguageType ¶
type RoutineLanguageType string
const ( LanguageTypeSQL RoutineLanguageType = "SQL" LanguageTypeJavaScript RoutineLanguageType = "JavaScript" )
type RoutineType ¶
type RoutineType string
const ( ScalarFunctionType RoutineType = "SCALAR_FUNCTION" ProcedureType RoutineType = "PROCEDURE" TableValuedFunctionType RoutineType = "TABLE_VALUED_FUNCTION" )
Click to show internal directories.
Click to hide internal directories.