Created
September 9, 2023 21:25
-
-
Save a-agmon/888c345b59049aca6fc870f0a322c3fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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