SciPy
Need help? Have a feature request? Please check out the tethne-users group .

tethne.dao package

Submodules

tethne.dao.tethnedao module

class tethne.dao.tethnedao.DBConnection[source]

DBConnection class creates a connection to the TETHNE database. It initializes the cursor which can be used to execute queries and fetch results. All methods to fetch data from the TETHNE database can be written in this class.

AS-IS -> The connection details are for a LOCAL database.

config = {'host': 'localhost', 'user': 'root', 'database': 'tethne'}
tethne.dao.tethnedao.getMaxAffiliationID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_affiliation”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxAffiliationInstanceID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_affiliation_instance”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxAuthorID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_author”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxAuthorInstanceID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_author_instance”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxCitationID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_citation”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxCitationInstanceID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_citation_instance”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxCorpusID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_corpus”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxInstitutionID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_author_instance”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxInstitutionInstanceID()[source]
Returns:

maximum value of the Primary key from the table “django-tethne_institution_instance”

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

tethne.dao.tethnedao.getMaxPaperID()[source]
Returns:

maximum value of Primary key from the table “django-tethne_paper”.

This is used to calculate the next id for primary key.

if the table is empty, 0 is returned

Module contents