SearchLogic

码农软件 · 软件分类 · 其他开发相关 · 2019-11-02 07:41:34

软件介绍

SearchLogic 是基于 Ruby ActiveRecord 的搜索、分页、排序等操作的类库。

安装方法:sudo gem install searchlogic

一个简单的搜索示例代码:

  User.all(
:conditions => {
:first_name_contains => "Ben", # first_name like '%Ben%'
:email_ends_with => "binarylogic.com", # email like '%binarylogic.com'
:created_after => Time.now, # created_at > Time.now
:hour_of_created_at => 5 # HOUR(created_at) > 5 (depends on DB type)
},
:per_page => 20, # limit 20
:page => 3, # offset 40, which starts us on page 3
:order_as => "ASC",
:order_by => {:user_group => :name} # order user_groups.name ASC
)

本文地址:https://codercto.com/soft/d/18083.html

Introduction to Linear Optimization

Introduction to Linear Optimization

Dimitris Bertsimas、John N. Tsitsiklis / Athena Scientific / 1997-02-01 / USD 89.00

"The true merit of this book, however, lies in its pedagogical qualities which are so impressive..." "Throughout the book, the authors make serious efforts to give geometric and intuitive explanations......一起来看看 《Introduction to Linear Optimization》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

MD5 加密
MD5 加密

MD5 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具