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://www.codercto.com/soft/d/18083.html

The Haskell School of Music

The Haskell School of Music

Paul Hudak、Donya Quick / Cambridge University Press / 2018-10-4 / GBP 42.99

This book teaches functional programming through creative applications in music and sound synthesis. Readers will learn the Haskell programming language and explore numerous ways to create music and d......一起来看看 《The Haskell School of Music》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

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

HEX CMYK 互转工具