import(dplyr)
import(methods)
importFrom(utils, stack)
importFrom(stats, na.omit, setNames)
importFrom(DBI, dbGetQuery, dbBegin, dbExistsTable, dbIsValid, dbCommit, dbConnect, dbDisconnect, make.db.names.default, dbListTables)
importFrom(RSQLite, dbGetPreparedQuery,SQLite)
importFrom(lazyeval, lazy_eval, lazy_dots, lazy, all_dots)
importFrom(igraph, graph.data.frame, shortest.paths, get.shortest.paths, V, adjacent.triangles, minimum.spanning.tree, get.edges, E)

#methods
export(populate, createTable, mergeStatement, insertStatement, makeSchemaFromData, makeSchemaFromFunction, append, length, 'relationship<-', schema, dbFile,
	tables, columns, 'constraint<-')

S3method(filter_, Database)
S3method(select_, Database)
S3method(subset, TableSchemaList)
S3method(open, Database)
S3method(close, Database)

#other functions
export(correct.df.names, Database, filter, select, isOpen)

exportClass(TableSchemaList, Database)
