@@ -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
403395change_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
440432Base. eltype (q:: SQLiteCursor{T} ) where {T} = T
441433Base. IteratorSize (:: Type{<:SQLiteCursor} ) = Base. SizeUnknown ()
@@ -458,8 +450,6 @@ function SQLite.getvalue(q::SQLiteCursor, col::Int, ::Type{T}) where {T}
458450 end
459451end
460452
461-
462-
463453function Base. iterate (q:: SQLiteCursor{NT} ) where {NT}
464454 isdone (q) && return nothing
465455 nt = SQLite. generate_namedtuple (NT, q)
0 commit comments