Branch Coverage

blib/lib/RDF/Trine/Store/DBI/Pg.pm
Criterion Covered Total %
branch 0 16 0.0


line true false branch
90 0 0 unless ($self->_table_exists('literals'))
91 0 0 unless ($dbh->do("\t\t\tCREATE TABLE literals (\n\t\t\t\tID NUMERIC(20) PRIMARY KEY,\n\t\t\t\tValue text NOT NULL,\n\t\t\t\tLanguage text NOT NULL DEFAULT '',\n\t\t\t\tDatatype text NOT NULL DEFAULT ''\n\t\t\t);\n"))
99 0 0 unless ($dbh->do("\t\t\tCREATE TABLE resources (\n\t\t\t\tID NUMERIC(20) PRIMARY KEY,\n\t\t\t\tURI text NOT NULL\n\t\t\t);\n"))
105 0 0 unless ($dbh->do("\t\t\tCREATE TABLE bnodes (\n\t\t\t\tID NUMERIC(20) PRIMARY KEY,\n\t\t\t\tName text NOT NULL\n\t\t\t);\n"))
111 0 0 unless ($dbh->do("\t\t\tCREATE TABLE models (\n\t\t\t\tID NUMERIC(20) PRIMARY KEY,\n\t\t\t\tName text NOT NULL\n\t\t\t);\n"))
118 0 0 unless $dbh->commit
121 0 0 unless ($self->_table_exists("statements$id"))
122 0 0 unless ($dbh->do("\t\t\tCREATE TABLE statements$id (\n\t\t\t\tSubject NUMERIC(20) NOT NULL,\n\t\t\t\tPredicate NUMERIC(20) NOT NULL,\n\t\t\t\tObject NUMERIC(20) NOT NULL,\n\t\t\t\tContext NUMERIC(20) NOT NULL DEFAULT 0,\n\t\t\t\tPRIMARY KEY (Subject, Predicate, Object, Context)\n\t\t\t);\n"))