Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchSqlExportWriter ¶
type BatchSqlExportWriter struct {
// contains filtered or unexported fields
}
SqlExportWriter is a TableWriter that writes SQL drop, create and insert statements to re-create a dolt table in a SQL database.
func OpenBatchedSQLExportWriter ¶
func OpenBatchedSQLExportWriter(ctx context.Context, wr io.WriteCloser, root *doltdb.RootValue, tableName string, sch schema.Schema, editOpts editor.Options) (*BatchSqlExportWriter, error)
OpenBatchedSQLExportWriter returns a new SqlWriter for the table with the writer given.
func (*BatchSqlExportWriter) Close ¶
func (w *BatchSqlExportWriter) Close(ctx context.Context) error
Close should flush all writes, release resources being held
func (*BatchSqlExportWriter) GetSchema ¶
func (w *BatchSqlExportWriter) GetSchema() schema.Schema
GetSchema returns the schema of this TableWriter.
func (*BatchSqlExportWriter) WriteSqlRow ¶
type SqlExportWriter ¶
type SqlExportWriter struct {
// contains filtered or unexported fields
}
SqlExportWriter is a TableWriter that writes SQL drop, create and insert statements to re-create a dolt table in a SQL database.
func OpenSQLExportWriter ¶
func OpenSQLExportWriter(ctx context.Context, wr io.WriteCloser, root *doltdb.RootValue, tableName string, sch schema.Schema, editOpts editor.Options) (*SqlExportWriter, error)
OpenSQLExportWriter returns a new SqlWriter for the table with the writer given.
func (*SqlExportWriter) Close ¶
func (w *SqlExportWriter) Close(ctx context.Context) error
Close should flush all writes, release resources being held
func (*SqlExportWriter) GetSchema ¶
func (w *SqlExportWriter) GetSchema() schema.Schema
GetSchema returns the schema of this TableWriter.