How to drop table?

94 views
Skip to first unread message

blak...@gmail.com

unread,
Jun 7, 2018, 9:38:43 AM6/7/18
to lovefield-users
Greetings,


I am trying to drop a table. I am using:

     sb.dropTable('project_vendor').exec();

but the table is still in the IndexedDB. How can I drop a table?


Thanks!


Blake McBride

Arthur Hsu

unread,
Jun 7, 2018, 1:28:24 PM6/7/18
to lovefield-users
You can only drop a table in onUpgrade() during a version change. This is a limit carried over from underlying IndexedDB.

Blake McBride

unread,
Jun 7, 2018, 1:51:08 PM6/7/18
to Arthur Hsu, lovefield-users
Okay.  I figured that out.  I can delete the table via IndexedDB API.  It there a LofeField API for this instead?  If there is, can you give me an example?

Thanks!

Blake


--
You received this message because you are subscribed to the Google Groups "lovefield-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lovefield-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lovefield-users/9defd4d1-201e-44c2-9633-4e14a366c37b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Arthur Hsu

unread,
Jun 7, 2018, 2:04:08 PM6/7/18
to lovefield-users


On Thursday, June 7, 2018 at 10:51:08 AM UTC-7, Blake McBride wrote:
Okay.  I figured that out.  I can delete the table via IndexedDB API.  It there a LofeField API for this instead?  If there is, can you give me an example?

Thanks!

Blake

Blake McBride

unread,
Jun 7, 2018, 3:05:09 PM6/7/18
to Arthur Hsu, lovefield-users
Thanks for the help!  Nice system!

--
You received this message because you are subscribed to a topic in the Google Groups "lovefield-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lovefield-users/wOK0NAnHvAw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lovefield-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lovefield-users/b49c6016-3dfe-431c-b889-c588b7429a42%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages