Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

        def type_exists(connection, type_name):
    """Return True if the given PostgreSQL type exists, False otherwise."""
    type_name = type_name.lower()
    return type_name in get_type_names(connection)
        


src/d/j/django-pgfields-1.4.3/django_pg/models/fields/composite/__init__.py   django-pgfields(Download)
from django.db.models.options import Options
from django_pg.models.fields.composite.meta import CompositeMeta
from django_pg.utils.types import type_exists
from psycopg2.extras import register_composite
import six

src/d/j/django-pgfields-1.4.3/django_pg/models/fields/composite/meta.py   django-pgfields(Download)
from django_pg.models.fields.composite.adapter import adapter_factory
from django_pg.utils import Meta
from django_pg.utils.types import type_exists
from importlib import import_module
from psycopg2.extensions import register_adapter

src/d/j/django-pgfields-HEAD/django_pg/models/fields/composite/__init__.py   django-pgfields(Download)
from django.db.models.options import Options
from django_pg.models.fields.composite.meta import CompositeMeta
from django_pg.utils.types import type_exists
from psycopg2.extras import register_composite
import six

src/d/j/django-pgfields-HEAD/django_pg/models/fields/composite/meta.py   django-pgfields(Download)
from django_pg.models.fields.composite.adapter import adapter_factory
from django_pg.utils import Meta
from django_pg.utils.types import type_exists
from importlib import import_module
from psycopg2.extensions import register_adapter