Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ozym committed Nov 23, 2024
1 parent 6415186 commit 2bc32ef
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 77 deletions.
161 changes: 84 additions & 77 deletions cmd/deltadb/delta.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions meta/sqlite/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,25 @@ func (d DB) Init(ctx context.Context, list []meta.TableList) error {
return err
}
case "Channel":
if err := d.prepare(ctx, tx, mmake.Insert(), mmake.Columns(l)...); err != nil {
return err
}
if err := d.prepare(ctx, tx, model.Insert(), model.Columns(l)...); err != nil {
return err
}
if err := d.exec(ctx, tx, channel.Create); err != nil {
return err
}
if err := d.prepare(ctx, tx, channel.Insert(), channel.Columns(l)...); err != nil {
return err
}
case "Component":
if err := d.prepare(ctx, tx, mmake.Insert(), mmake.Columns(l)...); err != nil {
return err
}
if err := d.prepare(ctx, tx, model.Insert(), model.Columns(l)...); err != nil {
return err
}
if err := d.exec(ctx, tx, component.Create); err != nil {
return err
}
Expand Down

0 comments on commit 2bc32ef

Please sign in to comment.