queryverse / QuerySQLite.jl

SQLite backend for Query.jl
Other
4 stars 2 forks source link

Have our own DB type #2

Closed davidanthoff closed 5 years ago

davidanthoff commented 5 years ago

I think it would be nice if one could write

database = QuerySQLite.DB(filename)

instead of

database = NamedTuple(OutsideTables(DB(filename)))

Where we have our own QuerySQLite.DB type that overwrites getproperty.

It could also have a nice show method that displays all the tables in that db.

bramtayl commented 5 years ago

https://github.com/queryverse/QuerySQLite.jl/commit/c41958a3b33dfe5e6a29bb56b0b9c3b0875d3703 simplifies this to

database = outside_tables(DB(filename))

which is a little nicer, anyway