def __init__( self, db, host="localhost", port=1433, schema=None, user=sysprop("user.name"), passwd=None, expose_pk=False, native_serialization=False, ): if schema is None: schema = user params = { "host": host, "port": port, "schema": schema, "database": db, "user": user, "passwd": passwd, "Expose primary keys": expose_pk, "dbtype": "sqlserver", "NATIVE_SERIALIZATION": native_serialization, } Workspace.__init__(self, SQLServerDataStoreFactory(), params)
def __init__(self, db, host='localhost', port=5432, schema='public', user=os.environ['USER'], passwd=None): params = {'host': host, 'port': port, 'schema': schema, 'database': db, 'user':user, 'passwd': passwd, 'dbtype': 'postgis'} Workspace.__init__(self, PostgisNGDataStoreFactory(), params)
def __init__(self, db, host='localhost', port=1025, user=None, passwd=None): user = user if user else db params = {'host': host, 'port': port, 'database': db, 'user':user, 'passwd': passwd, 'estimatedBounds': True, 'dbtype': 'teradata'} Workspace.__init__(self, TeradataDataStoreFactory(), params)
def __init__(self, db, dir=None): if dir: db = os.path.join(dir, db) params = {'database': db, 'dbtype': 'h2'} Workspace.__init__(self, H2DataStoreFactory(), params)
def __init__(self, db, host='localhost', port=5432, schema='public', user=sysprop('user.name'), passwd=None, estimated_extent=False): params = {'host': host, 'port': port, 'schema': schema, 'database': db, 'user':user, 'passwd': passwd, 'dbtype': 'postgis', 'Estimated extends': estimated_extent} Workspace.__init__(self, PostgisNGDataStoreFactory(), params)
def __init__(self, db, user=None, passwd=None): params = { 'database': db, 'user': user, 'passwd': passwd, 'dbtype': 'geopkg' } Workspace.__init__(self, GeoPkgDataStoreFactory(), params)
def __init__(self, db, host='localhost', port=1521, schema=None, user=sysprop('user.name'), passwd=None, estimated_extent=False): if schema is None: schema = user params = {'host': host, 'port': port, 'schema': schema, 'database': db, 'user':user, 'passwd': passwd, 'dbtype': 'oracle', 'Estimated extends': estimated_extent} Workspace.__init__(self, OracleNGDataStoreFactory(), params)
def __init__(self, db, host='localhost', port=5432, schema='public', user=os.environ['USER'], passwd=None): params = { 'host': host, 'port': port, 'schema': schema, 'database': db, 'user': user, 'passwd': passwd, 'dbtype': 'postgis' } Workspace.__init__(self, PostgisNGDataStoreFactory(), params)
def __init__(self, db, host='localhost', port=1025, user=None, passwd=None): user = user if user else db params = { 'host': host, 'port': port, 'database': db, 'user': user, 'passwd': passwd, 'estimatedBounds': True, 'dbtype': 'teradata' } Workspace.__init__(self, TeradataDataStoreFactory(), params)
def __init__(self, dir=None): dir = dir or os.getcwd() params = {'url': util.toURL(dir)} Workspace.__init__(self, ShapefileDataStoreFactory(), params)
def __init__(self, db, host='localhost', port=3306, user=os.environ['USER'], passwd=None): params = {'host': host, 'port': port, 'database': db, 'user':user, 'passwd': passwd, 'dbtype': 'mysql'} Workspace.__init__(self, MySQLDataStoreFactory(), params)
def __init__(self): Workspace.__init__(self, MemoryDataStoreFactory())
def __init__(self, db, host='localhost', port=3306, user=sysprop('user.name'), passwd=None): params = {'host': host, 'port': port, 'database': db, 'user':user, 'passwd': passwd, 'dbtype': 'mysql'} Workspace.__init__(self, MySQLDataStoreFactory(), params)
def __init__(self, dir=None): dir = dir or os.getcwd() params = {'directory': util.toFile(dir)} Workspace.__init__(self, PropertyDataStoreFactory(), params)
def __init__(self, db, host="localhost", port=3306, user=sysprop("user.name"), passwd=None): params = {"host": host, "port": port, "database": db, "user": user, "passwd": passwd, "dbtype": "mysql"} Workspace.__init__(self, MySQLDataStoreFactory(), params)
def __init__(self, db, user=None, passwd=None): params = {'database': db, 'user':user, 'passwd': passwd, 'dbtype': 'geopkg'} Workspace.__init__(self, GeoPkgDataStoreFactory(), params)