mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Release 0.10.1 (#149)
This commit is contained in:
parent
eaddae7d71
commit
0415deebbb
5 changed files with 12 additions and 8 deletions
|
@ -8,7 +8,7 @@ module DB
|
|||
# Once defined, `ResultSet#read(t)` populates properties of the class from the
|
||||
# `ResultSet`.
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# require "db"
|
||||
#
|
||||
# class Employee
|
||||
|
@ -28,7 +28,7 @@ module DB
|
|||
#
|
||||
# You can also define attributes for each property.
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# class Employee
|
||||
# DB.mapping({
|
||||
# title: String,
|
||||
|
|
|
@ -9,7 +9,7 @@ module DB
|
|||
#
|
||||
# ### Example
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# require "db"
|
||||
#
|
||||
# class Employee
|
||||
|
@ -32,7 +32,7 @@ module DB
|
|||
# Similar to `JSON::Field`, there is an annotation `DB::Field` that can be used to set serialization behavior
|
||||
# on individual instance variables.
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# class Employee
|
||||
# include DB::Serializable
|
||||
#
|
||||
|
@ -52,7 +52,7 @@ module DB
|
|||
#
|
||||
# Including this module is functionally identical to passing `{strict: false}` to `DB.mapping`: extra columns will not raise.
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# class Employee
|
||||
# include DB::Serializable
|
||||
# include DB::Serializable::NonStrict
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module DB
|
||||
VERSION = "0.10.0"
|
||||
VERSION = "0.10.1"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue