-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discovering existing tables across python/matlab #412
Comments
The datajoint python function There's probably a more native way to do the same, but this is the first thing that comes to mind |
To connect to an existing schema from matlab, you need to know its name. You can list the schema names using SQL commands: conn = dj.conn()
conn.query('SHOW SCHEMAS') Once you know the schema name, you you can connect to it using the Then you can plot the diagram of that schema using the erd <package> You can access the schema using the schema object, which you can instantiate by calling the schema = package.getSchema() With this schema object, you can use its dynamic property schema.v.Scan Alternatively, you can use the |
Thank you, this was super helpful. |
Our documentation is lagging behind a bit, especially with matlab. I would be very happy to see a user-contributed PR to our docs repository. |
@mikewehr Your contributions in both functionality and documentation are welcome! We will be refactoring the documentation to make contributions easier. |
Hi, we're just getting started implementing datajoint in our lab, using a local docker server. Jonny, a python user, started by adding subject schemas with basic biographical info. I, a matlab user, can connect to the database but do not know in advance what schemas have been created in python. How do I discover which schemas/tables already exist in the database and connect matlab schemas to them? Is this documented somewhere? This docs page https://docs.datajoint.org/matlab/existing/5-Loading-Classes.html didn't seem to help me, unless I'm missing something. Thank you!
Reproducibility
The text was updated successfully, but these errors were encountered: