how to check if a table exists ?

20 views
Skip to first unread message

daslicht

unread,
Mar 15, 2018, 7:06:43 AM3/15/18
to redbeanphp
Hi,
how to check if a table exists please?

for example:


if( check here if 'blog' existsis ) { 
  $result_count = \R::count( "blog" );
}

Cheers Marc  

gabor

unread,
Mar 17, 2018, 7:44:58 AM3/17/18
to redbeanphp
Use R::inspect()

Das Licht

unread,
Mar 17, 2018, 7:49:24 AM3/17/18
to redbe...@googlegroups.com
Thank you !

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

Reply all
Reply to author
Forward
0 new messages