Funicular::DB module of PicoRuby
Singleton methods
__begin_deferral
Funicular::DB.__begin_deferral(Symbol role) -> void
__commit_deferral
Funicular::DB.__commit_deferral(Symbol role) -> void
__drain_events
Funicular::DB.__drain_events() -> nil
__ensure_local_database_enabled
Funicular::DB.__ensure_local_database_enabled(untyped operation) -> bool
__fail_boot
Funicular::DB.__fail_boot(Array[untyped] errors) -> bool
__install_visibility_hook
Funicular::DB.__install_visibility_hook() -> bool
__latch_page_epoch
Funicular::DB.__latch_page_epoch() -> untyped
__model_local_db
Funicular::DB.__model_local_db(untyped model) -> GuardedDatabase
__model_replica_db
Funicular::DB.__model_replica_db() -> GuardedDatabase?
__page_metadata
Funicular::DB.__page_metadata() -> Hash[Symbol, untyped]
__persist_timer_fired
Funicular::DB.__persist_timer_fired(Symbol role, Integer? token) -> nil
__persist_timer_token
Funicular::DB.__persist_timer_token(Symbol role) -> Integer?
__register_database
Funicular::DB.__register_database(Symbol role, untyped raw_db, Array[untyped] models) -> nil
__registered_database
Funicular::DB.__registered_database(Symbol role) -> untyped
__report_boot_errors
Funicular::DB.__report_boot_errors(Array[untyped] errors) -> bool
__reset_boot
Funicular::DB.__reset_boot() -> nil
__reset_config
Funicular::DB.__reset_config() -> nil
__rollback_deferral
Funicular::DB.__rollback_deferral(Symbol role) -> void
__session_epoch_ok?
Funicular::DB.__session_epoch_ok?(String? header) -> bool
__set_boot_state
Funicular::DB.__set_boot_state(Symbol state) -> Symbol
__set_durability
Funicular::DB.__set_durability(Symbol state) -> Symbol
__set_local_database_enabled
Funicular::DB.__set_local_database_enabled(untyped value) -> bool
__set_session_epoch
Funicular::DB.__set_session_epoch(untyped value) -> untyped
__set_snapshot_identity
Funicular::DB.__set_snapshot_identity(String? identity) -> String?
__set_snapshot_store
Funicular::DB.__set_snapshot_store(untyped store) -> untyped
__set_tick_scheduler
Funicular::DB.__set_tick_scheduler(Proc? scheduler) -> Proc?
__terminate_session
Funicular::DB.__terminate_session(String? header) -> nil
__visibility_flush
Funicular::DB.__visibility_flush() -> nil
apply_local_migrations
Funicular::DB.apply_local_migrations(untyped db, untyped model) -> Integer
boot
Funicular::DB.boot(?models: Array[untyped]?, ?metadata: Hash[Symbol, untyped]?) -> bool
boot_state
Funicular::DB.boot_state() -> Symbol
build_replica_tables
Funicular::DB.build_replica_tables(untyped db, Array[untyped] models) -> bool
cancel_persist_timers
Funicular::DB.cancel_persist_timers() -> nil
canonical_replica_schema
Funicular::DB.canonical_replica_schema(Array[untyped] models) -> String
config
Funicular::DB.config() -> Config
configure
Funicular::DB.configure() { () -> void } -> nil
durability
Funicular::DB.durability() -> Symbol
elect_writer
Funicular::DB.elect_writer(String lock_name) -> Symbol
enforce_read_only
Funicular::DB.enforce_read_only(bool read_only, untyped raw_stmt) -> void
flush
Funicular::DB.flush() -> bool
fold_local_columns
Funicular::DB.fold_local_columns(untyped model) -> Hash[String, Symbol]
guard_statement_sql
Funicular::DB.guard_statement_sql(untyped sql) -> void
local
Funicular::DB.local() -> GuardedDatabase
local_database_enabled?
Funicular::DB.local_database_enabled?() -> bool
lock_name
Funicular::DB.lock_name(String identity) -> String
mutation_generation
Funicular::DB.mutation_generation() -> Integer
namespace_identity
Funicular::DB.namespace_identity(untyped application_id, untyped user_key, bool anonymous) -> String
notify_changed
Funicular::DB.notify_changed(untyped target, ?untyped table) -> nil
open_snapshot_store
Funicular::DB.open_snapshot_store() -> untyped
persist_snapshot
Funicular::DB.persist_snapshot(Symbol role) -> bool
read_meta
Funicular::DB.read_meta(untyped db, String key) -> String?
read_page_metadata
Funicular::DB.read_page_metadata() -> Hash[Symbol, untyped]
rebuild_local_table
Funicular::DB.rebuild_local_table(untyped db, untyped model, ?Array[TableBuilder]? builders) -> Integer
release_writer_lock
Funicular::DB.release_writer_lock() -> bool
replica
Funicular::DB.replica() -> GuardedDatabase
replica_delete
Funicular::DB.replica_delete(untyped db, untyped model, untyped id) -> bool
replica_table_ddl
Funicular::DB.replica_table_ddl(untyped model) -> String
replica_upsert
Funicular::DB.replica_upsert(untyped db, untyped model, Hash[untyped, untyped] attrs) -> bool
replica_upsert_all
Funicular::DB.replica_upsert_all(untyped db, untyped model, Array[untyped] rows) -> bool
request_persistent_storage
Funicular::DB.request_persistent_storage() -> Symbol
reset_local_table
Funicular::DB.reset_local_table(untyped model) -> bool
resolve_namespace
Funicular::DB.resolve_namespace(application_id: untyped, user_key: untyped, user_key_configured: bool, anonymous_only: bool) -> String
restore_snapshot
Funicular::DB.restore_snapshot(Symbol role) -> bool
schema_lockdown
Funicular::DB.schema_lockdown() -> untyped
session_epoch
Funicular::DB.session_epoch() -> untyped
session_terminated?
Funicular::DB.session_terminated?() -> bool
snapshot_key
Funicular::DB.snapshot_key(String identity, Symbol role) -> String
snapshot_store
Funicular::DB.snapshot_store() -> untyped
stale_generation?
Funicular::DB.stale_generation?(Integer token) -> bool
stale_response_error
Funicular::DB.stale_response_error() -> Error
store_meta
Funicular::DB.store_meta(untyped db, String key, String value) -> void
store_table_version
Funicular::DB.store_table_version(untyped db, String table, Integer version) -> void
stored_table_version
Funicular::DB.stored_table_version(untyped db, String table) -> Integer
subscribe
Funicular::DB.subscribe(Symbol role, untyped table) { (Symbol role, String table) -> void } -> Integer
unsubscribe
Funicular::DB.unsubscribe(Integer id) -> nil
validate_identifier
Funicular::DB.validate_identifier(untyped name) -> String
validate_role
Funicular::DB.validate_role(untyped role) -> Symbol
wipe
Funicular::DB.wipe() -> bool