diff --git a/README.md b/README.md index 1f0274a..2fb6c15 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ for row in results row[1] # access the first column in the row results end -# results also implicitly satisfy the Tables.jl `Tables.rows` inteface, so any compatible sink can ingest results +# results also implicitly satisfy the Tables.jl `Tables.rows` interface, so any compatible sink can ingest results df = DataFrame(results) CSV.write("results.csv", results) diff --git a/src/DBInterface.jl b/src/DBInterface.jl index 9ca8847..ffe40ea 100644 --- a/src/DBInterface.jl +++ b/src/DBInterface.jl @@ -111,7 +111,7 @@ const StatementParams = Union{PositionalStatementParams, NamedStatementParams} Database packages should overload `DBInterface.execute` for a valid, prepared `DBInterface.Statement` subtype (the first method signature is defined in DBInterface.jl using `DBInterface.prepare`), which takes an optional `params` argument, which should be an indexable collection (`Vector` or `Tuple`) for positional parameters, or a `NamedTuple` for named parameters. -Alternatively, the parameters could be specified as keyword agruments of `DBInterface.execute`. +Alternatively, the parameters could be specified as keyword arguments of `DBInterface.execute`. `DBInterface.execute` should return a valid `DBInterface.Cursor` object, which is any iterator of "rows", which themselves must be property-accessible (i.e. implement `propertynames` and `getproperty` for value access by name),