Crate dsync

Source
Expand description

dsync library

The dsync library allows creating a custom binary for dsync

§Features

  • async: enable support for diesel_async
  • tsync: enable support for tsync
  • backtrace: enable attaching backtraces to dsync errors
  • derive-queryablebyname: enable diesel::QueryableByName derives on READ structs
  • advanced-queries: enable experimental pagination and filter functions (examples)

default features: tsync, backtrace, derive-queryablebyname

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

error

Structs§

FileChange
Status indicating what happened to a specific file
GenerationConfig
Global config, not table specific
GenerationConfigOpts
TableOptions
Options for a individual table

Enums§

BytesType
Available options for bytes types
FileChangeStatus
Status indicating what happened to a file
StringType
Available options for string types

Constants§

DEFAULT_MODEL_PATH
DEFAULT_SCHEMA_PATH
FILE_SIGNATURE
dsync file signature for generated & managed files

Functions§

generate_code
Generate a model for the given schema contents
generate_files
Generate all Models for a given diesel schema file