php think
migrate
migrate:breakpoint Manage breakpoints
migrate:create Create a new migration
migrate:rollback Rollback the last or to a specific migration
migrate:run Migrate the database
migrate:status Show migration status
php think migrate:run
== 20180726051822 User: migrating
== 20180726051822 User: migrated 0.2040s
All Done. Took 0.4250s
数据库迁移回退
php think migrate:rollback
== 20180726051822 User: reverting
== 20180726051822 User: reverted 0.1112s
All Done. Took 0.1437s
多文件迁移回退,是一步一步回退的
数据填充
php think seed:create UserSeed
编辑\database\seeds\UserSeed.php
public function run()
{
// 使用db()方法定义想哪一个表填充数据,使用insert()方法插入数据
db('users')->insert(['username'=>'admin','password'=>md5('admin'),'nick'=>'leo']);
db('users')->insert(['password'=>md5('admin')]);
}
什么是Hessian
The Hessian binary web service protocol makes web services usable without requiring a large framework, and without learning yet another alphabet soup of protocols. Because it is a binary p
在Spark Shell上,通过创建HiveContext可以直接进行Hive操作
1. 操作Hive中已存在的表
[hadoop@hadoop bin]$ ./spark-shell
Spark assembly has been built with Hive, including Datanucleus jars on classpath
Welcom
JMS Message Delivery Reliability and Acknowledgement Patterns
http://wso2.com/library/articles/2013/01/jms-message-delivery-reliability-acknowledgement-patterns/
Transaction and redelivery in
转载请出自出处:http://eksliang.iteye.com/blog/2177567 一、游标
数据库使用游标返回find的执行结果。客户端对游标的实现通常能够对最终结果进行有效控制,从shell中定义一个游标非常简单,就是将查询结果分配给一个变量(用var声明的变量就是局部变量),便创建了一个游标,如下所示:
> var