How to import server side function and schema from one database to another?

50 views
Skip to first unread message

Suyog Kale

unread,
Sep 28, 2016, 9:57:49 AM9/28/16
to OrientDB
Hello,

I have implemented serverside javascript functions, I want to import the functions from development database to test database.

what is recommended way to import only schema changes and functions and deploy them to another database? At present we doing it manually using studio which is very tedious job.

Is there any npm orient package that allow some scripts to import only schema and server side javascript functions and update them to another database?

I want use better option to integrate in build automation.

alessand...@gmail.com

unread,
Sep 28, 2016, 10:10:40 AM9/28/16
to orient-...@googlegroups.com
Hi,
have you already looked at the documentation?

To export only the schema you could use

EXPORT DATABASE schema.gz -excludeALL -includeSchema=TRUE

and to import the schema 

import database yourpath/schema.gz



Best regards,
Alessandro

suyog kale

unread,
Sep 28, 2016, 11:18:00 AM9/28/16
to orient-...@googlegroups.com, Manmay Kudale

Yes, I have referred that documentation, I was looking something using nodejs scripts.

Please suggest

On Sep 28, 2016 7:40 PM, <alessand...@gmail.com> wrote:
Hi,
have you already looked at the documentation?

Best regards,
Alessandro

--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/bYaDcjnEjpA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-database+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ivan Mainetti

unread,
Sep 28, 2016, 12:09:04 PM9/28/16
to OrientDB, man...@gmail.com
hi,

via console

to export import your schema you can use
orientdb {db=dev}> export database /tmp/onlyschema.export.gz -excludeAll -includeSchema=TRUE
orientdb {db=test}> import database /tmp/onlyschema.export.gz -merge=true

then to export functions:
orientdb {db=dev}> export database /tmp/onlyfunc.export.gz -excludeAll -includeClass=OFunction
orientdb {db=test}> import database /tmp/onlyfunc.export.gz -merge=true




Il giorno mercoledì 28 settembre 2016 17:18:00 UTC+2, Suyog Kale ha scritto:

Yes, I have referred that documentation, I was looking something using nodejs scripts.

Please suggest

On Sep 28, 2016 7:40 PM, <alessand...@gmail.com> wrote:
Hi,
have you already looked at the documentation?

Best regards,
Alessandro

--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/bYaDcjnEjpA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.

Suyog Kale

unread,
Sep 29, 2016, 1:09:41 AM9/29/16
to OrientDB, man...@gmail.com
Hi Ivan,

I am looking if there are any API using nodejs.

Regards,
Suyog

Ivan Mainetti

unread,
Sep 29, 2016, 9:32:24 AM9/29/16
to OrientDB, man...@gmail.com
I don't think there's such a feature in orientjs

suyog kale

unread,
Sep 29, 2016, 9:42:44 AM9/29/16
to orient-...@googlegroups.com, Manmay Kudale

Ok. Thank you

To unsubscribe from this group and all its topics, send an email to orient-database+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages