Connect to superduper
note
Note that this is only relevant if you are running superduper in development mode. Otherwise refer to "Configuring your production system".
- MongoDB
- SQLite
- MySQL
- Oracle
- PostgreSQL
- Snowflake
- Clickhouse
- DuckDB
- Pandas
- MongoMock
from superduper import superduper
db = superduper('mongodb://localhost:27017/documents')
from superduper import superduper
db = superduper('sqlite://my_db.db')
from superduper import superduper
user = 'superduper'
password = 'superduper'
port = 3306
host = 'localhost'
database = 'test_db'
db = superduper(f"mysql://{user}:{password}@{host}:{port}/{database}")
from superduper import superduper
user = 'sa'
password = 'Superduper#1'
port = 1433
host = 'localhost'
db = superduper(f"mssql://{user}:{password}@{host}:{port}")
!pip install psycopg2
from superduper import superduper
user = 'postgres'
password = 'postgres'
port = 5432
host = 'localhost'
database = 'test_db'
db_uri = f"postgres://{user}:{password}@{host}:{port}/{database}"
db = superduper(db_uri, metadata_store=db_uri.replace('postgres://', 'postgresql://'))
from superduper import superduper
user = "superduperuser"
password = "superduperpassword"
account = "XXXX-XXXX" # ORGANIZATIONID-USERID
database = "FREE_COMPANY_DATASET/PUBLIC"
snowflake_uri = f"snowflake://{user}:{password}@{account}/{database}"
db = superduper(
snowflake_uri,
metadata_store='sqlite:///your_database_name.db',
)
from superduper import superduper
user = 'default'
password = ''
port = 8123
host = 'localhost'
db = superduper(f"clickhouse://{user}:{password}@{host}:{port}", metadata_store=f'mongomock://meta')
from superduper import superduper
db = superduper('duckdb://mydb.duckdb')
from superduper import superduper
db = superduper(['my.csv'], metadata_store=f'mongomock://meta')
from superduper import superduper
db = superduper('mongomock:///test_db')