struct

Dude::Postgres

Inherits Dude::Postgres::Migration < Dude::Store < Struct < Value < Object

Constructors

new(client : DB::Database, namespace : Symbol | String = "")
Source
new(url, namespace = :dude, default_database = "postgres")
Source

Class methods

create_database(url : String, default_database = "postgres")
Source
create_database(url : URI, default_database = "postgres")
Source
delete_database(url : String, default_database = "postgres")
Source
delete_database(url : URI, default_database = "postgres")
Source

Instance methods

cache_table
Source
client
Source
delete(key : Symbol | String)
Source
get(key : Symbol | String) : String | Nil
Source
migrate_database
Source
rollback_database
Source
set(key : Symbol | String, value, expire)
Source
transaction
Source
truncate
Source

Nested types