Skip to content

Instantly share code, notes, and snippets.

@a-agmon
Created September 9, 2023 21:25
Show Gist options
  • Save a-agmon/888c345b59049aca6fc870f0a322c3fc to your computer and use it in GitHub Desktop.
Save a-agmon/888c345b59049aca6fc870f0a322c3fc to your computer and use it in GitHub Desktop.
func (d *DuckDBDriver) Execute(statement string) error {
_, err := d.db.Exec(statement)
if err != nil {
return err
}
return nil
}
func (d *DuckDBDriver) Query(statement string) (*sql.Rows, error) {
rows, err := d.db.Query(statement)
if err != nil {
return nil, err
}
return rows, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment