Skip to content

Commit e4237ef

Browse files
committed
remove duplicate methods
1 parent dae091e commit e4237ef

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/QuerySQLite.jl

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ translate_call(::typeof(&), left, right) =
171171
@code_instead (|) OutsideCode Any
172172
@code_instead (|) Any OutsideCode
173173
@code_instead (|) OutsideCode OutsideCode
174-
translate_call(::typeof(&), left, right) =
174+
translate_call(::typeof(|), left, right) =
175175
string(translate(left), " OR ", translate(right))
176176

177177
@code_instead backwards OutsideCode
@@ -390,14 +390,6 @@ translate_call(::typeof(take), iterator, number) =
390390
string(translate(iterator), " LIMIT ", number)
391391
end
392392

393-
# SQLite interface
394-
395-
to_symbols(them) = map_unrolled(Symbol, (them...,))
396-
397-
get_table_names(database::DB) = to_symbols(tables(database).name)
398-
get_column_names(database::DB, table_name) =
399-
to_symbols(SQLite.columns(database, String(table_name)).name)
400-
401393
# dispatch
402394

403395
change_row(arbitrary_function, iterator, arguments...) = model_row(iterator)
@@ -435,7 +427,7 @@ struct SQLiteCursor{T}
435427
stmt::SQLite.Stmt
436428
status::Base.RefValue{Cint}
437429
cur_row::Base.RefValue{Int}
438-
end
430+
end
439431

440432
Base.eltype(q::SQLiteCursor{T}) where {T} = T
441433
Base.IteratorSize(::Type{<:SQLiteCursor}) = Base.SizeUnknown()
@@ -458,8 +450,6 @@ function SQLite.getvalue(q::SQLiteCursor, col::Int, ::Type{T}) where {T}
458450
end
459451
end
460452

461-
462-
463453
function Base.iterate(q::SQLiteCursor{NT}) where {NT}
464454
isdone(q) && return nothing
465455
nt = SQLite.generate_namedtuple(NT, q)

0 commit comments

Comments
 (0)