Database functions

create_schema(cur)

Create table schema.

create_triggers(cur)

Create triggers.

drop_tables(cur)

Drop all tables.

flush_tables(cur)

Empty all tables.

is_compatible_postgres_version(cur)

Determine whether PostgreSQL server version is compatible with libtree.

is_installed(cur)

Check whether libtree tables exist.

make_dsn_from_env(env)

Make DSN string from libpq environment variables.

table_exists(cur, table_name, schema='public')

Check if given table name exists.