Skip to content

caio-oliv/sqlstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlstr

A SQL (sqlstr) query builder.

Features

TODO

  • Feature complete
    • PostgreSQL commands
    • PostgreSQL functions
      • comparison
      • mathematical
      • pattern mathing
      • datetime
      • text search
      • array
      • aggregate
      • subquery
    • fn count_column(column: &str) -> COUNT(<column>)
    • fn count_column_as(column: &str, alias: &str) -> COUNT(<column>) AS <alias>
    • fn uninon() -> UNION
    • fn uninon_all() -> UNION ALL
    • fn cte_with(name: &str) -> WITH <name> AS ()
    • macro utils
      • quoted!("public"."users" AS "u") -> 'public'.'users' AS 'u'
      • doublequoted!("public"."users" AS "u") -> "public"."users" AS "u"
      • backquoted!("public"."users" AS "u") -> "public.users AS u"
  • Support more database dialects (other than Postgres)
    • Postgres
    • MySQL
    • SQLite

About

SQL query builder

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published