Crate ormlite

source ·

Modules

Macros

  • Statically checked SQL query with println!() style syntax.
  • A variant of query! which takes a path to an explicitly defined struct as the output type.

Structs

  • An asynchronous pool of SQLx database connections.
  • Configuration options for Pool.

Enums

Traits

  • Acquire connections or transactions from a database in a generic way.
  • A tuple of arguments to be sent to the database.
  • A type that can be used to index into a Row or Statement.
  • Represents a single database connection.
  • A database driver.
  • A type that can be decoded from the database.
  • Encode a single value to be sent to the database.
  • A type that contains or can provide a database connection to use for executing queries against the database.
  • A record that can be built from a row returned by the database.
  • The core trait. a struct that implements Model can also implement HasModelBuilder, (and is required to implement Insertable)
  • Represents a single row from the database.

Functions

  • Make a SQL query.
  • Make a SQL query that is mapped to a concrete type using FromRow.
  • Make a SQL query, with the given arguments, that is mapped to a concrete type using FromRow.
  • Make a SQL query, with the given arguments.

Type Definitions

  • An owned dynamically typed Future for use in cases where you can’t statically type your result or need to add some indirection.

Derive Macros