Did I find the right examples for you? yes no

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

src/p/r/prom-HEAD/prom_test.py   prom(Download)
from prom.model import Orm
from prom.config import Schema, Connection, DsnConnection, Field
from prom.interface.postgres import PostgreSQL
from prom.interface.sqlite import SQLite
import prom
def get_interface():
    config = DsnConnection(os.environ["PROM_POSTGRES_URL"])
    i = PostgreSQL()
#    config = DsnConnection(os.environ["PROM_SQLITE_URL"])
#    i = SQLite()
    def get_interface(self):
        config = DsnConnection(os.environ["PROM_POSTGRES_URL"])
        i = PostgreSQL()
        i.connect(config)
        assert i.connection is not None
        config = i.connection_config
        config.database = 'this_is_a_bogus_db_name'
        i = PostgreSQL(config)
        q = query.Query()
        q.set_fields({