使用RedBean PHP清空还是截断表? [英] Empty or truncate table with RedBean PHP?

查看:109
本文介绍了使用RedBean PHP清空还是截断表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用RedBean PHP进行测试,我非常喜欢它,但是我不知道如何截断表.我可以获取所有bean并将其删除,但这似乎很麻烦.

I'm using RedBean PHP for testing purposes and I like it very much, however I have no idea how I can truncate a table. I can fetch all the beans and delete them, but that seems cumbersome.

推荐答案

在RedBean 1.3中,您可以使用R :: wipe($ type)截断表.

In RedBean 1.3 you can use R::wipe($type) to truncate a table.

这篇关于使用RedBean PHP清空还是截断表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆