203 words

'DROP TABLE' in ODB?

#1
2012-03-14 07:39

Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there something like SQL 'drop table' in ODB?

lwalkowski
lwalkowski's picture
Joined on 2010-08-25
User Post #73
#2
2012-03-14 12:50

This is currently not supported. As far as I understand the main effect of such drop operation would be on the list of classes in the Explorer. Is it correct?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #975
#3
2012-03-14 13:41

Yes.

lwalkowski
lwalkowski's picture
Joined on 2010-08-25
User Post #75
#4
2015-12-15 19:10

Any update on this? I also like to remove a class from the DB which is no longer needed. Is there a way to achieve this?

data303
data303's picture
Joined on 2015-12-15
User Post #1
#5
2015-12-15 19:15

I found a description that the DB Explorer should be capable to delete classes? But it seems not to work

http://www.objectdb.com/database/jdo/manual/chapter9#Editing_the_Database --> Class Management

There I also read that you can load new kind of compiled classes into the schema? But under the "File" Menu none such option is provided

data303
data303's picture
Joined on 2015-12-15
User Post #2
#6
2015-12-16 08:40

These features were included in ObjectDB 1.x Explorer but unfortunately are currently not supported in ObjectDB 2.x.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,359
#7
2015-12-18 14:29

Can we ask to put such a feature on your roadmap that unused classes etc. can be removed from the DB?

data303
data303's picture
Joined on 2015-12-15
User Post #3
#8
2015-12-20 12:37

It will probably be included in a new Explorer, which is on our roadmap, but not for the next year.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,366

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel