rubydb 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitattributes +20 -0
- data/.github/ISSUE_TEMPLATE/bug.yml +0 -0
- data/.github/ISSUE_TEMPLATE/feature.yml +0 -0
- data/.github/ISSUE_TEMPLATE/performance.yml +0 -0
- data/.github/ISSUE_TEMPLATE/security.yml +0 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +15 -0
- data/.github/dependabot.yml +0 -0
- data/.github/workflows/benchmark.yml +26 -0
- data/.github/workflows/compatibility.yml +63 -0
- data/.github/workflows/fuzz.yml +33 -0
- data/.github/workflows/lint.yml +21 -0
- data/.github/workflows/operations.yml +24 -0
- data/.github/workflows/production-validation.yml +111 -0
- data/.github/workflows/release.yml +77 -0
- data/.github/workflows/security.yml +37 -0
- data/.github/workflows/test.yml +26 -0
- data/.github/workflows/workload.yml +58 -0
- data/.gitignore +43 -0
- data/.rspec +4 -0
- data/.rubocop.yml +44 -0
- data/.ruby-version +1 -0
- data/.standard.yml +14 -0
- data/ARCHITECTURE.md +21 -0
- data/CHANGELOG.md +31 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/CONTRIBUTING.md +29 -0
- data/GOVERNANCE.md +16 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +71 -0
- data/LICENSE +60 -0
- data/README.md +162 -0
- data/ROADMAP.md +27 -0
- data/Rakefile +71 -0
- data/SECURITY.md +54 -0
- data/SUPPORT.md +14 -0
- data/adapters/activerecord/Gemfile +11 -0
- data/adapters/activerecord/README.md +9 -0
- data/adapters/activerecord/lib/active_record/connection_adapters/rubydb_adapter.rb +887 -0
- data/adapters/activerecord/rubydb-activerecord.gemspec +27 -0
- data/adapters/activerecord/spec/rubydb_adapter_integration_spec.rb +151 -0
- data/adapters/ruby/README.md +18 -0
- data/adapters/sequel/README.md +11 -0
- data/bin/rubydb +19 -0
- data/bin/rubydb-server +126 -0
- data/config/development.yml +0 -0
- data/config/monitoring/prometheus-alerts.yml +39 -0
- data/config/production.yml +36 -0
- data/config/test.yml +0 -0
- data/docs/README.md +71 -0
- data/docs/architecture/concurrency.md +14 -0
- data/docs/architecture/current-state.md +125 -0
- data/docs/architecture/execution-engine.md +25 -0
- data/docs/architecture/indexes.md +19 -0
- data/docs/architecture/mvcc.md +19 -0
- data/docs/architecture/overview.md +13 -0
- data/docs/architecture/pages.md +11 -0
- data/docs/architecture/production-roadmap.md +82 -0
- data/docs/architecture/query-planner.md +20 -0
- data/docs/architecture/recovery.md +18 -0
- data/docs/architecture/sql-engine.md +12 -0
- data/docs/architecture/storage-engine.md +14 -0
- data/docs/architecture/transactions.md +10 -0
- data/docs/architecture/wal.md +28 -0
- data/docs/cli-cheatsheet.md +98 -0
- data/docs/cli.md +275 -0
- data/docs/contributing/architecture.md +9 -0
- data/docs/contributing/benchmarking.md +14 -0
- data/docs/contributing/development.md +16 -0
- data/docs/contributing/release-process.md +49 -0
- data/docs/contributing/testing.md +16 -0
- data/docs/debugging.md +229 -0
- data/docs/developer/branching.md +10 -0
- data/docs/developer/database-diff.md +10 -0
- data/docs/developer/local-development.md +17 -0
- data/docs/developer/snapshots.md +9 -0
- data/docs/developer/temporal-data.md +10 -0
- data/docs/developer-guide.md +297 -0
- data/docs/getting-started/first-database.md +16 -0
- data/docs/getting-started/first-query.md +13 -0
- data/docs/getting-started/installation.md +19 -0
- data/docs/getting-started/local-to-production.md +300 -0
- data/docs/getting-started/quickstart.md +17 -0
- data/docs/getting-started/rails.md +16 -0
- data/docs/hardening_backlog.md +93 -0
- data/docs/lessons-learned.md +112 -0
- data/docs/operations/backups.md +33 -0
- data/docs/operations/disaster-recovery.md +31 -0
- data/docs/operations/failover.md +30 -0
- data/docs/operations/monitoring.md +25 -0
- data/docs/operations/production-guide.md +295 -0
- data/docs/operations/production-runbook.md +45 -0
- data/docs/operations/replication.md +33 -0
- data/docs/operations/restore.md +6 -0
- data/docs/operations/runbook.md +34 -0
- data/docs/operations/upgrades.md +14 -0
- data/docs/operations/workload-testing.md +17 -0
- data/docs/production-readiness.md +118 -0
- data/docs/production_validation.md +150 -0
- data/docs/rails/active-record.md +11 -0
- data/docs/rails/compatibility-guide.md +90 -0
- data/docs/rails/database-yml.md +92 -0
- data/docs/rails/installation.md +17 -0
- data/docs/rails/migrations.md +17 -0
- data/docs/rails/production.md +82 -0
- data/docs/rails/troubleshooting.md +18 -0
- data/docs/release.md +59 -0
- data/docs/server/architecture.md +10 -0
- data/docs/server/authentication.md +10 -0
- data/docs/server/configuration.md +16 -0
- data/docs/server/connection-pooling.md +10 -0
- data/docs/server/deployment.md +10 -0
- data/docs/server/protocol.md +12 -0
- data/docs/sql/compatibility-guide.md +82 -0
- data/docs/sql/compatibility.md +39 -0
- data/docs/sql/data-types.md +10 -0
- data/docs/sql/functions.md +9 -0
- data/docs/sql/joins.md +9 -0
- data/docs/sql/operators.md +9 -0
- data/docs/sql/sqlite-compatibility.md +21 -0
- data/docs/sql/syntax.md +10 -0
- data/docs/sql/transactions.md +10 -0
- data/docs/troubleshooting.md +244 -0
- data/exe/rubydb +23 -0
- data/lib/rubydb/backup/archive.rb +334 -0
- data/lib/rubydb/backup/backup.rb +401 -0
- data/lib/rubydb/backup/incremental.rb +353 -0
- data/lib/rubydb/backup/restore.rb +290 -0
- data/lib/rubydb/backup/snapshot.rb +267 -0
- data/lib/rubydb/backup/verification.rb +279 -0
- data/lib/rubydb/branching/branch.rb +181 -0
- data/lib/rubydb/branching/branch_manager.rb +311 -0
- data/lib/rubydb/branching/branch_metadata.rb +140 -0
- data/lib/rubydb/branching/checkout.rb +166 -0
- data/lib/rubydb/branching/copy_on_write.rb +272 -0
- data/lib/rubydb/branching/diff.rb +138 -0
- data/lib/rubydb/branching/merge.rb +285 -0
- data/lib/rubydb/build_info.rb +15 -0
- data/lib/rubydb/catalog/catalog.rb +391 -0
- data/lib/rubydb/catalog/column.rb +112 -0
- data/lib/rubydb/catalog/constraint.rb +180 -0
- data/lib/rubydb/catalog/database.rb +184 -0
- data/lib/rubydb/catalog/index.rb +97 -0
- data/lib/rubydb/catalog/schema.rb +103 -0
- data/lib/rubydb/catalog/sequence.rb +90 -0
- data/lib/rubydb/catalog/system_catalog.rb +698 -0
- data/lib/rubydb/catalog/table.rb +178 -0
- data/lib/rubydb/catalog/trigger.rb +102 -0
- data/lib/rubydb/catalog/view.rb +66 -0
- data/lib/rubydb/cli/application.rb +163 -0
- data/lib/rubydb/cli/commands/backup.rb +81 -0
- data/lib/rubydb/cli/commands/branch.rb +72 -0
- data/lib/rubydb/cli/commands/checkout.rb +54 -0
- data/lib/rubydb/cli/commands/create.rb +58 -0
- data/lib/rubydb/cli/commands/diff.rb +77 -0
- data/lib/rubydb/cli/commands/doctor.rb +74 -0
- data/lib/rubydb/cli/commands/drop.rb +57 -0
- data/lib/rubydb/cli/commands/init.rb +102 -0
- data/lib/rubydb/cli/commands/inspect.rb +95 -0
- data/lib/rubydb/cli/commands/merge.rb +63 -0
- data/lib/rubydb/cli/commands/migrate.rb +62 -0
- data/lib/rubydb/cli/commands/restart.rb +39 -0
- data/lib/rubydb/cli/commands/restore.rb +121 -0
- data/lib/rubydb/cli/commands/shell.rb +365 -0
- data/lib/rubydb/cli/commands/snapshot.rb +79 -0
- data/lib/rubydb/cli/commands/start.rb +82 -0
- data/lib/rubydb/cli/commands/status.rb +92 -0
- data/lib/rubydb/cli/commands/stop.rb +47 -0
- data/lib/rubydb/cli/commands/vacuum.rb +58 -0
- data/lib/rubydb/cli/formatter.rb +221 -0
- data/lib/rubydb/cli/output.rb +168 -0
- data/lib/rubydb/client/client.rb +304 -0
- data/lib/rubydb/client/connection.rb +415 -0
- data/lib/rubydb/client/connection_pool.rb +168 -0
- data/lib/rubydb/client/connection_url.rb +96 -0
- data/lib/rubydb/client/prepared_statement.rb +60 -0
- data/lib/rubydb/client/result.rb +123 -0
- data/lib/rubydb/client/statement.rb +52 -0
- data/lib/rubydb/client/transaction.rb +130 -0
- data/lib/rubydb/concurrency/concurrency.rb +19 -0
- data/lib/rubydb/concurrency/deadlock_detector.rb +150 -0
- data/lib/rubydb/concurrency/latch.rb +101 -0
- data/lib/rubydb/concurrency/lock_graph.rb +165 -0
- data/lib/rubydb/concurrency/mutex.rb +183 -0
- data/lib/rubydb/concurrency/rw_lock.rb +180 -0
- data/lib/rubydb/concurrency/scheduler.rb +250 -0
- data/lib/rubydb/concurrency/worker_pool.rb +143 -0
- data/lib/rubydb/configuration/config.rb +170 -0
- data/lib/rubydb/configuration/defaults.rb +179 -0
- data/lib/rubydb/configuration/environment.rb +152 -0
- data/lib/rubydb/configuration/parser.rb +185 -0
- data/lib/rubydb/configuration/validation.rb +221 -0
- data/lib/rubydb/constants.rb +74 -0
- data/lib/rubydb/constraints/check.rb +181 -0
- data/lib/rubydb/constraints/constraint.rb +101 -0
- data/lib/rubydb/constraints/foreign_key.rb +130 -0
- data/lib/rubydb/constraints/not_null.rb +64 -0
- data/lib/rubydb/constraints/primary_key.rb +99 -0
- data/lib/rubydb/constraints/unique.rb +108 -0
- data/lib/rubydb/constraints/validator.rb +350 -0
- data/lib/rubydb/errors/authentication_error.rb +10 -0
- data/lib/rubydb/errors/authorization_error.rb +23 -0
- data/lib/rubydb/errors/client_error.rb +10 -0
- data/lib/rubydb/errors/configuration_error.rb +10 -0
- data/lib/rubydb/errors/connection_error.rb +10 -0
- data/lib/rubydb/errors/constraint_error.rb +23 -0
- data/lib/rubydb/errors/corruption_error.rb +10 -0
- data/lib/rubydb/errors/database_error.rb +10 -0
- data/lib/rubydb/errors/error.rb +20 -0
- data/lib/rubydb/errors/execution_error.rb +10 -0
- data/lib/rubydb/errors/parser_error.rb +10 -0
- data/lib/rubydb/errors/recovery_error.rb +10 -0
- data/lib/rubydb/errors/replication_error.rb +10 -0
- data/lib/rubydb/errors/server_error.rb +6 -0
- data/lib/rubydb/errors/storage_error.rb +10 -0
- data/lib/rubydb/errors/transaction_error.rb +10 -0
- data/lib/rubydb/execution/aggregate_executor.rb +138 -0
- data/lib/rubydb/execution/delete_executor.rb +112 -0
- data/lib/rubydb/execution/distinct_executor.rb +135 -0
- data/lib/rubydb/execution/executor.rb +1192 -0
- data/lib/rubydb/execution/expression.rb +193 -0
- data/lib/rubydb/execution/index_scan.rb +142 -0
- data/lib/rubydb/execution/insert_executor.rb +217 -0
- data/lib/rubydb/execution/join_executor.rb +249 -0
- data/lib/rubydb/execution/limit_executor.rb +85 -0
- data/lib/rubydb/execution/optimizer.rb +215 -0
- data/lib/rubydb/execution/plan.rb +361 -0
- data/lib/rubydb/execution/planner.rb +546 -0
- data/lib/rubydb/execution/predicate.rb +235 -0
- data/lib/rubydb/execution/scan.rb +49 -0
- data/lib/rubydb/execution/sequential_scan.rb +63 -0
- data/lib/rubydb/execution/sort_executor.rb +185 -0
- data/lib/rubydb/execution/update_executor.rb +162 -0
- data/lib/rubydb/functions/aggregate.rb +70 -0
- data/lib/rubydb/functions/date_functions.rb +278 -0
- data/lib/rubydb/functions/function.rb +85 -0
- data/lib/rubydb/functions/json_functions.rb +215 -0
- data/lib/rubydb/functions/numeric_functions.rb +346 -0
- data/lib/rubydb/functions/scalar.rb +52 -0
- data/lib/rubydb/functions/string_functions.rb +383 -0
- data/lib/rubydb/functions/system_functions.rb +246 -0
- data/lib/rubydb/history/as_of.rb +238 -0
- data/lib/rubydb/history/change.rb +105 -0
- data/lib/rubydb/history/history.rb +131 -0
- data/lib/rubydb/history/history_manager.rb +229 -0
- data/lib/rubydb/history/temporal_query.rb +202 -0
- data/lib/rubydb/history/timeline.rb +144 -0
- data/lib/rubydb/indexes/btree.rb +186 -0
- data/lib/rubydb/indexes/btree_cursor.rb +258 -0
- data/lib/rubydb/indexes/btree_node.rb +385 -0
- data/lib/rubydb/indexes/hash_index.rb +150 -0
- data/lib/rubydb/indexes/index.rb +71 -0
- data/lib/rubydb/indexes/index_manager.rb +406 -0
- data/lib/rubydb/indexes/index_scan.rb +470 -0
- data/lib/rubydb/migrations/migration.rb +254 -0
- data/lib/rubydb/migrations/migration_lock.rb +146 -0
- data/lib/rubydb/migrations/migration_manager.rb +176 -0
- data/lib/rubydb/migrations/migration_version.rb +71 -0
- data/lib/rubydb/migrations/schema_diff.rb +211 -0
- data/lib/rubydb/migrations/schema_version.rb +64 -0
- data/lib/rubydb/monitoring/events.rb +160 -0
- data/lib/rubydb/monitoring/health.rb +222 -0
- data/lib/rubydb/monitoring/logger.rb +193 -0
- data/lib/rubydb/monitoring/metrics.rb +359 -0
- data/lib/rubydb/monitoring/performance.rb +176 -0
- data/lib/rubydb/monitoring/statistics.rb +170 -0
- data/lib/rubydb/mvcc/garbage_collector.rb +199 -0
- data/lib/rubydb/mvcc/mvcc.rb +16 -0
- data/lib/rubydb/mvcc/snapshot.rb +147 -0
- data/lib/rubydb/mvcc/vacuum.rb +180 -0
- data/lib/rubydb/mvcc/version.rb +106 -0
- data/lib/rubydb/mvcc/version_store.rb +398 -0
- data/lib/rubydb/mvcc/visibility.rb +109 -0
- data/lib/rubydb/protocol/capabilities.rb +125 -0
- data/lib/rubydb/protocol/decoder.rb +145 -0
- data/lib/rubydb/protocol/encoder.rb +136 -0
- data/lib/rubydb/protocol/handshake.rb +305 -0
- data/lib/rubydb/protocol/message.rb +121 -0
- data/lib/rubydb/protocol/protocol.rb +277 -0
- data/lib/rubydb/protocol/version.rb +54 -0
- data/lib/rubydb/rails/adapter.rb +239 -0
- data/lib/rubydb/rails/connection.rb +314 -0
- data/lib/rubydb/rails/database_statements.rb +122 -0
- data/lib/rubydb/rails/migration.rb +131 -0
- data/lib/rubydb/rails/quoting.rb +109 -0
- data/lib/rubydb/rails/result.rb +120 -0
- data/lib/rubydb/rails/schema_statements.rb +339 -0
- data/lib/rubydb/rails/transaction.rb +105 -0
- data/lib/rubydb/rails/type.rb +126 -0
- data/lib/rubydb/recovery/checkpoint.rb +257 -0
- data/lib/rubydb/recovery/consistency.rb +467 -0
- data/lib/rubydb/recovery/corruption_detector.rb +5 -0
- data/lib/rubydb/recovery/crash_recovery.rb +387 -0
- data/lib/rubydb/recovery/recovery_manager.rb +206 -0
- data/lib/rubydb/recovery/redo.rb +237 -0
- data/lib/rubydb/recovery/undo.rb +206 -0
- data/lib/rubydb/replication/failover.rb +5 -0
- data/lib/rubydb/replication/fencing.rb +63 -0
- data/lib/rubydb/replication/primary.rb +450 -0
- data/lib/rubydb/replication/replica.rb +384 -0
- data/lib/rubydb/replication/replication_log.rb +200 -0
- data/lib/rubydb/replication/replication_manager.rb +308 -0
- data/lib/rubydb/replication/replication_slot.rb +295 -0
- data/lib/rubydb/replication/replication_stream.rb +201 -0
- data/lib/rubydb/rubydb.rb +560 -0
- data/lib/rubydb/security/access_control.rb +254 -0
- data/lib/rubydb/security/audit_log.rb +213 -0
- data/lib/rubydb/security/authentication.rb +302 -0
- data/lib/rubydb/security/authorization.rb +282 -0
- data/lib/rubydb/security/credentials.rb +196 -0
- data/lib/rubydb/security/password.rb +215 -0
- data/lib/rubydb/security/permissions.rb +74 -0
- data/lib/rubydb/security/role.rb +101 -0
- data/lib/rubydb/security/user.rb +86 -0
- data/lib/rubydb/server/connection.rb +366 -0
- data/lib/rubydb/server/connection_pool.rb +193 -0
- data/lib/rubydb/server/lifecycle.rb +228 -0
- data/lib/rubydb/server/listener.rb +136 -0
- data/lib/rubydb/server/request_handler.rb +276 -0
- data/lib/rubydb/server/server.rb +364 -0
- data/lib/rubydb/server/session.rb +369 -0
- data/lib/rubydb/server/worker.rb +210 -0
- data/lib/rubydb/server/worker_pool.rb +168 -0
- data/lib/rubydb/sql/ast/alter_table.rb +169 -0
- data/lib/rubydb/sql/ast/begin_transaction.rb +47 -0
- data/lib/rubydb/sql/ast/commit.rb +37 -0
- data/lib/rubydb/sql/ast/constraint.rb +83 -0
- data/lib/rubydb/sql/ast/create_database.rb +41 -0
- data/lib/rubydb/sql/ast/create_index.rb +61 -0
- data/lib/rubydb/sql/ast/create_schema.rb +52 -0
- data/lib/rubydb/sql/ast/create_table.rb +187 -0
- data/lib/rubydb/sql/ast/delete.rb +54 -0
- data/lib/rubydb/sql/ast/drop_database.rb +41 -0
- data/lib/rubydb/sql/ast/drop_index.rb +41 -0
- data/lib/rubydb/sql/ast/drop_schema.rb +49 -0
- data/lib/rubydb/sql/ast/drop_table.rb +49 -0
- data/lib/rubydb/sql/ast/explain.rb +64 -0
- data/lib/rubydb/sql/ast/expression.rb +604 -0
- data/lib/rubydb/sql/ast/insert.rb +82 -0
- data/lib/rubydb/sql/ast/node.rb +42 -0
- data/lib/rubydb/sql/ast/rollback.rb +63 -0
- data/lib/rubydb/sql/ast/savepoint.rb +59 -0
- data/lib/rubydb/sql/ast/select.rb +88 -0
- data/lib/rubydb/sql/ast/set_operation.rb +20 -0
- data/lib/rubydb/sql/ast/trigger.rb +29 -0
- data/lib/rubydb/sql/ast/update.rb +88 -0
- data/lib/rubydb/sql/ast/vacuum.rb +19 -0
- data/lib/rubydb/sql/ast/view.rb +32 -0
- data/lib/rubydb/sql/ast/with.rb +32 -0
- data/lib/rubydb/sql/grammar.rb +86 -0
- data/lib/rubydb/sql/keywords.rb +156 -0
- data/lib/rubydb/sql/lexer.rb +214 -0
- data/lib/rubydb/sql/operators.rb +100 -0
- data/lib/rubydb/sql/parser.rb +1185 -0
- data/lib/rubydb/sql/planner/analyzer.rb +302 -0
- data/lib/rubydb/sql/planner/binder.rb +550 -0
- data/lib/rubydb/sql/planner/type_checker.rb +431 -0
- data/lib/rubydb/sql/token.rb +210 -0
- data/lib/rubydb/storage/buffer_frame.rb +44 -0
- data/lib/rubydb/storage/buffer_pool.rb +155 -0
- data/lib/rubydb/storage/database_lock.rb +74 -0
- data/lib/rubydb/storage/deserializer.rb +342 -0
- data/lib/rubydb/storage/engine.rb +2338 -0
- data/lib/rubydb/storage/file_manager.rb +187 -0
- data/lib/rubydb/storage/free_space_map.rb +81 -0
- data/lib/rubydb/storage/page.rb +94 -0
- data/lib/rubydb/storage/page_allocator.rb +855 -0
- data/lib/rubydb/storage/page_header.rb +67 -0
- data/lib/rubydb/storage/page_manager.rb +131 -0
- data/lib/rubydb/storage/record.rb +58 -0
- data/lib/rubydb/storage/row.rb +78 -0
- data/lib/rubydb/storage/serializer.rb +51 -0
- data/lib/rubydb/storage/storage_layout.rb +151 -0
- data/lib/rubydb/storage/storage_manager.rb +114 -0
- data/lib/rubydb/storage/tuple.rb +461 -0
- data/lib/rubydb/storage/visibility_map.rb +984 -0
- data/lib/rubydb/transactions/commit_manager.rb +220 -0
- data/lib/rubydb/transactions/isolation.rb +98 -0
- data/lib/rubydb/transactions/lock.rb +76 -0
- data/lib/rubydb/transactions/lock_manager.rb +362 -0
- data/lib/rubydb/transactions/savepoint.rb +143 -0
- data/lib/rubydb/transactions/transaction.rb +215 -0
- data/lib/rubydb/transactions/transaction_id.rb +84 -0
- data/lib/rubydb/transactions/transaction_log.rb +257 -0
- data/lib/rubydb/transactions/transaction_manager.rb +435 -0
- data/lib/rubydb/types/bigint.rb +36 -0
- data/lib/rubydb/types/blob.rb +37 -0
- data/lib/rubydb/types/boolean.rb +34 -0
- data/lib/rubydb/types/date.rb +39 -0
- data/lib/rubydb/types/decimal.rb +48 -0
- data/lib/rubydb/types/float.rb +34 -0
- data/lib/rubydb/types/integer.rb +36 -0
- data/lib/rubydb/types/json.rb +41 -0
- data/lib/rubydb/types/null.rb +34 -0
- data/lib/rubydb/types/smallint.rb +36 -0
- data/lib/rubydb/types/text.rb +37 -0
- data/lib/rubydb/types/time.rb +46 -0
- data/lib/rubydb/types/timestamp.rb +39 -0
- data/lib/rubydb/types/type.rb +119 -0
- data/lib/rubydb/types/uuid.rb +47 -0
- data/lib/rubydb/types/varchar.rb +37 -0
- data/lib/rubydb/version.rb +33 -0
- data/lib/rubydb/wal/archive.rb +193 -0
- data/lib/rubydb/wal/checkpoint.rb +183 -0
- data/lib/rubydb/wal/lsn.rb +94 -0
- data/lib/rubydb/wal/reader.rb +260 -0
- data/lib/rubydb/wal/record.rb +105 -0
- data/lib/rubydb/wal/segment.rb +193 -0
- data/lib/rubydb/wal/wal.rb +452 -0
- data/lib/rubydb/wal/writer.rb +236 -0
- data/lib/rubydb.rb +7 -0
- data/packaging/docker/Dockerfile +36 -0
- data/packaging/docker/docker-compose.failover.yml +43 -0
- data/packaging/docker/entrypoint.sh +15 -0
- data/packaging/homebrew/rubydb.rb +19 -0
- data/packaging/systemd/rubydb.service +22 -0
- data/rubydb.gemspec +57 -0
- data/scripts/benchmark +7 -0
- data/scripts/durability_drill +37 -0
- data/scripts/format +0 -0
- data/scripts/fuzz +63 -0
- data/scripts/lint +0 -0
- data/scripts/release +50 -0
- data/scripts/release_check +43 -0
- data/scripts/replication_failover_drill +250 -0
- data/scripts/replication_network_failover_drill +255 -0
- data/scripts/restore_drill +45 -0
- data/scripts/security +0 -0
- data/scripts/setup +0 -0
- data/scripts/test +0 -0
- data/scripts/test-chaos +0 -0
- data/scripts/test-crash +0 -0
- data/scripts/test-integration +0 -0
- data/scripts/test-unit +0 -0
- data/visibility_map.json +1 -0
- metadata +538 -0
metadata
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rubydb
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Aldane Hutchinson
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: digest
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '3.1'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: json
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '2.7'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '2.7'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: date
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '3.3'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '3.3'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: time
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0.4'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0.4'
|
|
68
|
+
description: |
|
|
69
|
+
RubyDB is a developer-first relational database foundation written in Ruby.
|
|
70
|
+
It combines SQLite-like simplicity with a growing SQL, WAL, MVCC, server,
|
|
71
|
+
replication, and Rails integration surface. Production deployment is
|
|
72
|
+
limited to the capabilities and validation documented by the project.
|
|
73
|
+
email:
|
|
74
|
+
- aldanehutchinson5@gmail.com
|
|
75
|
+
executables:
|
|
76
|
+
- rubydb
|
|
77
|
+
extensions: []
|
|
78
|
+
extra_rdoc_files: []
|
|
79
|
+
files:
|
|
80
|
+
- ".gitattributes"
|
|
81
|
+
- ".github/ISSUE_TEMPLATE/bug.yml"
|
|
82
|
+
- ".github/ISSUE_TEMPLATE/feature.yml"
|
|
83
|
+
- ".github/ISSUE_TEMPLATE/performance.yml"
|
|
84
|
+
- ".github/ISSUE_TEMPLATE/security.yml"
|
|
85
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
86
|
+
- ".github/dependabot.yml"
|
|
87
|
+
- ".github/workflows/benchmark.yml"
|
|
88
|
+
- ".github/workflows/compatibility.yml"
|
|
89
|
+
- ".github/workflows/fuzz.yml"
|
|
90
|
+
- ".github/workflows/lint.yml"
|
|
91
|
+
- ".github/workflows/operations.yml"
|
|
92
|
+
- ".github/workflows/production-validation.yml"
|
|
93
|
+
- ".github/workflows/release.yml"
|
|
94
|
+
- ".github/workflows/security.yml"
|
|
95
|
+
- ".github/workflows/test.yml"
|
|
96
|
+
- ".github/workflows/workload.yml"
|
|
97
|
+
- ".gitignore"
|
|
98
|
+
- ".rspec"
|
|
99
|
+
- ".rubocop.yml"
|
|
100
|
+
- ".ruby-version"
|
|
101
|
+
- ".standard.yml"
|
|
102
|
+
- ARCHITECTURE.md
|
|
103
|
+
- CHANGELOG.md
|
|
104
|
+
- CODE_OF_CONDUCT.md
|
|
105
|
+
- CONTRIBUTING.md
|
|
106
|
+
- GOVERNANCE.md
|
|
107
|
+
- Gemfile
|
|
108
|
+
- Gemfile.lock
|
|
109
|
+
- LICENSE
|
|
110
|
+
- README.md
|
|
111
|
+
- ROADMAP.md
|
|
112
|
+
- Rakefile
|
|
113
|
+
- SECURITY.md
|
|
114
|
+
- SUPPORT.md
|
|
115
|
+
- adapters/activerecord/Gemfile
|
|
116
|
+
- adapters/activerecord/README.md
|
|
117
|
+
- adapters/activerecord/lib/active_record/connection_adapters/rubydb_adapter.rb
|
|
118
|
+
- adapters/activerecord/rubydb-activerecord.gemspec
|
|
119
|
+
- adapters/activerecord/spec/rubydb_adapter_integration_spec.rb
|
|
120
|
+
- adapters/ruby/README.md
|
|
121
|
+
- adapters/sequel/README.md
|
|
122
|
+
- bin/rubydb
|
|
123
|
+
- bin/rubydb-server
|
|
124
|
+
- config/development.yml
|
|
125
|
+
- config/monitoring/prometheus-alerts.yml
|
|
126
|
+
- config/production.yml
|
|
127
|
+
- config/test.yml
|
|
128
|
+
- docs/README.md
|
|
129
|
+
- docs/architecture/concurrency.md
|
|
130
|
+
- docs/architecture/current-state.md
|
|
131
|
+
- docs/architecture/execution-engine.md
|
|
132
|
+
- docs/architecture/indexes.md
|
|
133
|
+
- docs/architecture/mvcc.md
|
|
134
|
+
- docs/architecture/overview.md
|
|
135
|
+
- docs/architecture/pages.md
|
|
136
|
+
- docs/architecture/production-roadmap.md
|
|
137
|
+
- docs/architecture/query-planner.md
|
|
138
|
+
- docs/architecture/recovery.md
|
|
139
|
+
- docs/architecture/sql-engine.md
|
|
140
|
+
- docs/architecture/storage-engine.md
|
|
141
|
+
- docs/architecture/transactions.md
|
|
142
|
+
- docs/architecture/wal.md
|
|
143
|
+
- docs/cli-cheatsheet.md
|
|
144
|
+
- docs/cli.md
|
|
145
|
+
- docs/contributing/architecture.md
|
|
146
|
+
- docs/contributing/benchmarking.md
|
|
147
|
+
- docs/contributing/development.md
|
|
148
|
+
- docs/contributing/release-process.md
|
|
149
|
+
- docs/contributing/testing.md
|
|
150
|
+
- docs/debugging.md
|
|
151
|
+
- docs/developer-guide.md
|
|
152
|
+
- docs/developer/branching.md
|
|
153
|
+
- docs/developer/database-diff.md
|
|
154
|
+
- docs/developer/local-development.md
|
|
155
|
+
- docs/developer/snapshots.md
|
|
156
|
+
- docs/developer/temporal-data.md
|
|
157
|
+
- docs/getting-started/first-database.md
|
|
158
|
+
- docs/getting-started/first-query.md
|
|
159
|
+
- docs/getting-started/installation.md
|
|
160
|
+
- docs/getting-started/local-to-production.md
|
|
161
|
+
- docs/getting-started/quickstart.md
|
|
162
|
+
- docs/getting-started/rails.md
|
|
163
|
+
- docs/hardening_backlog.md
|
|
164
|
+
- docs/lessons-learned.md
|
|
165
|
+
- docs/operations/backups.md
|
|
166
|
+
- docs/operations/disaster-recovery.md
|
|
167
|
+
- docs/operations/failover.md
|
|
168
|
+
- docs/operations/monitoring.md
|
|
169
|
+
- docs/operations/production-guide.md
|
|
170
|
+
- docs/operations/production-runbook.md
|
|
171
|
+
- docs/operations/replication.md
|
|
172
|
+
- docs/operations/restore.md
|
|
173
|
+
- docs/operations/runbook.md
|
|
174
|
+
- docs/operations/upgrades.md
|
|
175
|
+
- docs/operations/workload-testing.md
|
|
176
|
+
- docs/production-readiness.md
|
|
177
|
+
- docs/production_validation.md
|
|
178
|
+
- docs/rails/active-record.md
|
|
179
|
+
- docs/rails/compatibility-guide.md
|
|
180
|
+
- docs/rails/database-yml.md
|
|
181
|
+
- docs/rails/installation.md
|
|
182
|
+
- docs/rails/migrations.md
|
|
183
|
+
- docs/rails/production.md
|
|
184
|
+
- docs/rails/troubleshooting.md
|
|
185
|
+
- docs/release.md
|
|
186
|
+
- docs/server/architecture.md
|
|
187
|
+
- docs/server/authentication.md
|
|
188
|
+
- docs/server/configuration.md
|
|
189
|
+
- docs/server/connection-pooling.md
|
|
190
|
+
- docs/server/deployment.md
|
|
191
|
+
- docs/server/protocol.md
|
|
192
|
+
- docs/sql/compatibility-guide.md
|
|
193
|
+
- docs/sql/compatibility.md
|
|
194
|
+
- docs/sql/data-types.md
|
|
195
|
+
- docs/sql/functions.md
|
|
196
|
+
- docs/sql/joins.md
|
|
197
|
+
- docs/sql/operators.md
|
|
198
|
+
- docs/sql/sqlite-compatibility.md
|
|
199
|
+
- docs/sql/syntax.md
|
|
200
|
+
- docs/sql/transactions.md
|
|
201
|
+
- docs/troubleshooting.md
|
|
202
|
+
- exe/rubydb
|
|
203
|
+
- lib/rubydb.rb
|
|
204
|
+
- lib/rubydb/backup/archive.rb
|
|
205
|
+
- lib/rubydb/backup/backup.rb
|
|
206
|
+
- lib/rubydb/backup/incremental.rb
|
|
207
|
+
- lib/rubydb/backup/restore.rb
|
|
208
|
+
- lib/rubydb/backup/snapshot.rb
|
|
209
|
+
- lib/rubydb/backup/verification.rb
|
|
210
|
+
- lib/rubydb/branching/branch.rb
|
|
211
|
+
- lib/rubydb/branching/branch_manager.rb
|
|
212
|
+
- lib/rubydb/branching/branch_metadata.rb
|
|
213
|
+
- lib/rubydb/branching/checkout.rb
|
|
214
|
+
- lib/rubydb/branching/copy_on_write.rb
|
|
215
|
+
- lib/rubydb/branching/diff.rb
|
|
216
|
+
- lib/rubydb/branching/merge.rb
|
|
217
|
+
- lib/rubydb/build_info.rb
|
|
218
|
+
- lib/rubydb/catalog/catalog.rb
|
|
219
|
+
- lib/rubydb/catalog/column.rb
|
|
220
|
+
- lib/rubydb/catalog/constraint.rb
|
|
221
|
+
- lib/rubydb/catalog/database.rb
|
|
222
|
+
- lib/rubydb/catalog/index.rb
|
|
223
|
+
- lib/rubydb/catalog/schema.rb
|
|
224
|
+
- lib/rubydb/catalog/sequence.rb
|
|
225
|
+
- lib/rubydb/catalog/system_catalog.rb
|
|
226
|
+
- lib/rubydb/catalog/table.rb
|
|
227
|
+
- lib/rubydb/catalog/trigger.rb
|
|
228
|
+
- lib/rubydb/catalog/view.rb
|
|
229
|
+
- lib/rubydb/cli/application.rb
|
|
230
|
+
- lib/rubydb/cli/commands/backup.rb
|
|
231
|
+
- lib/rubydb/cli/commands/branch.rb
|
|
232
|
+
- lib/rubydb/cli/commands/checkout.rb
|
|
233
|
+
- lib/rubydb/cli/commands/create.rb
|
|
234
|
+
- lib/rubydb/cli/commands/diff.rb
|
|
235
|
+
- lib/rubydb/cli/commands/doctor.rb
|
|
236
|
+
- lib/rubydb/cli/commands/drop.rb
|
|
237
|
+
- lib/rubydb/cli/commands/init.rb
|
|
238
|
+
- lib/rubydb/cli/commands/inspect.rb
|
|
239
|
+
- lib/rubydb/cli/commands/merge.rb
|
|
240
|
+
- lib/rubydb/cli/commands/migrate.rb
|
|
241
|
+
- lib/rubydb/cli/commands/restart.rb
|
|
242
|
+
- lib/rubydb/cli/commands/restore.rb
|
|
243
|
+
- lib/rubydb/cli/commands/shell.rb
|
|
244
|
+
- lib/rubydb/cli/commands/snapshot.rb
|
|
245
|
+
- lib/rubydb/cli/commands/start.rb
|
|
246
|
+
- lib/rubydb/cli/commands/status.rb
|
|
247
|
+
- lib/rubydb/cli/commands/stop.rb
|
|
248
|
+
- lib/rubydb/cli/commands/vacuum.rb
|
|
249
|
+
- lib/rubydb/cli/formatter.rb
|
|
250
|
+
- lib/rubydb/cli/output.rb
|
|
251
|
+
- lib/rubydb/client/client.rb
|
|
252
|
+
- lib/rubydb/client/connection.rb
|
|
253
|
+
- lib/rubydb/client/connection_pool.rb
|
|
254
|
+
- lib/rubydb/client/connection_url.rb
|
|
255
|
+
- lib/rubydb/client/prepared_statement.rb
|
|
256
|
+
- lib/rubydb/client/result.rb
|
|
257
|
+
- lib/rubydb/client/statement.rb
|
|
258
|
+
- lib/rubydb/client/transaction.rb
|
|
259
|
+
- lib/rubydb/concurrency/concurrency.rb
|
|
260
|
+
- lib/rubydb/concurrency/deadlock_detector.rb
|
|
261
|
+
- lib/rubydb/concurrency/latch.rb
|
|
262
|
+
- lib/rubydb/concurrency/lock_graph.rb
|
|
263
|
+
- lib/rubydb/concurrency/mutex.rb
|
|
264
|
+
- lib/rubydb/concurrency/rw_lock.rb
|
|
265
|
+
- lib/rubydb/concurrency/scheduler.rb
|
|
266
|
+
- lib/rubydb/concurrency/worker_pool.rb
|
|
267
|
+
- lib/rubydb/configuration/config.rb
|
|
268
|
+
- lib/rubydb/configuration/defaults.rb
|
|
269
|
+
- lib/rubydb/configuration/environment.rb
|
|
270
|
+
- lib/rubydb/configuration/parser.rb
|
|
271
|
+
- lib/rubydb/configuration/validation.rb
|
|
272
|
+
- lib/rubydb/constants.rb
|
|
273
|
+
- lib/rubydb/constraints/check.rb
|
|
274
|
+
- lib/rubydb/constraints/constraint.rb
|
|
275
|
+
- lib/rubydb/constraints/foreign_key.rb
|
|
276
|
+
- lib/rubydb/constraints/not_null.rb
|
|
277
|
+
- lib/rubydb/constraints/primary_key.rb
|
|
278
|
+
- lib/rubydb/constraints/unique.rb
|
|
279
|
+
- lib/rubydb/constraints/validator.rb
|
|
280
|
+
- lib/rubydb/errors/authentication_error.rb
|
|
281
|
+
- lib/rubydb/errors/authorization_error.rb
|
|
282
|
+
- lib/rubydb/errors/client_error.rb
|
|
283
|
+
- lib/rubydb/errors/configuration_error.rb
|
|
284
|
+
- lib/rubydb/errors/connection_error.rb
|
|
285
|
+
- lib/rubydb/errors/constraint_error.rb
|
|
286
|
+
- lib/rubydb/errors/corruption_error.rb
|
|
287
|
+
- lib/rubydb/errors/database_error.rb
|
|
288
|
+
- lib/rubydb/errors/error.rb
|
|
289
|
+
- lib/rubydb/errors/execution_error.rb
|
|
290
|
+
- lib/rubydb/errors/parser_error.rb
|
|
291
|
+
- lib/rubydb/errors/recovery_error.rb
|
|
292
|
+
- lib/rubydb/errors/replication_error.rb
|
|
293
|
+
- lib/rubydb/errors/server_error.rb
|
|
294
|
+
- lib/rubydb/errors/storage_error.rb
|
|
295
|
+
- lib/rubydb/errors/transaction_error.rb
|
|
296
|
+
- lib/rubydb/execution/aggregate_executor.rb
|
|
297
|
+
- lib/rubydb/execution/delete_executor.rb
|
|
298
|
+
- lib/rubydb/execution/distinct_executor.rb
|
|
299
|
+
- lib/rubydb/execution/executor.rb
|
|
300
|
+
- lib/rubydb/execution/expression.rb
|
|
301
|
+
- lib/rubydb/execution/index_scan.rb
|
|
302
|
+
- lib/rubydb/execution/insert_executor.rb
|
|
303
|
+
- lib/rubydb/execution/join_executor.rb
|
|
304
|
+
- lib/rubydb/execution/limit_executor.rb
|
|
305
|
+
- lib/rubydb/execution/optimizer.rb
|
|
306
|
+
- lib/rubydb/execution/plan.rb
|
|
307
|
+
- lib/rubydb/execution/planner.rb
|
|
308
|
+
- lib/rubydb/execution/predicate.rb
|
|
309
|
+
- lib/rubydb/execution/scan.rb
|
|
310
|
+
- lib/rubydb/execution/sequential_scan.rb
|
|
311
|
+
- lib/rubydb/execution/sort_executor.rb
|
|
312
|
+
- lib/rubydb/execution/update_executor.rb
|
|
313
|
+
- lib/rubydb/functions/aggregate.rb
|
|
314
|
+
- lib/rubydb/functions/date_functions.rb
|
|
315
|
+
- lib/rubydb/functions/function.rb
|
|
316
|
+
- lib/rubydb/functions/json_functions.rb
|
|
317
|
+
- lib/rubydb/functions/numeric_functions.rb
|
|
318
|
+
- lib/rubydb/functions/scalar.rb
|
|
319
|
+
- lib/rubydb/functions/string_functions.rb
|
|
320
|
+
- lib/rubydb/functions/system_functions.rb
|
|
321
|
+
- lib/rubydb/history/as_of.rb
|
|
322
|
+
- lib/rubydb/history/change.rb
|
|
323
|
+
- lib/rubydb/history/history.rb
|
|
324
|
+
- lib/rubydb/history/history_manager.rb
|
|
325
|
+
- lib/rubydb/history/temporal_query.rb
|
|
326
|
+
- lib/rubydb/history/timeline.rb
|
|
327
|
+
- lib/rubydb/indexes/btree.rb
|
|
328
|
+
- lib/rubydb/indexes/btree_cursor.rb
|
|
329
|
+
- lib/rubydb/indexes/btree_node.rb
|
|
330
|
+
- lib/rubydb/indexes/hash_index.rb
|
|
331
|
+
- lib/rubydb/indexes/index.rb
|
|
332
|
+
- lib/rubydb/indexes/index_manager.rb
|
|
333
|
+
- lib/rubydb/indexes/index_scan.rb
|
|
334
|
+
- lib/rubydb/migrations/migration.rb
|
|
335
|
+
- lib/rubydb/migrations/migration_lock.rb
|
|
336
|
+
- lib/rubydb/migrations/migration_manager.rb
|
|
337
|
+
- lib/rubydb/migrations/migration_version.rb
|
|
338
|
+
- lib/rubydb/migrations/schema_diff.rb
|
|
339
|
+
- lib/rubydb/migrations/schema_version.rb
|
|
340
|
+
- lib/rubydb/monitoring/events.rb
|
|
341
|
+
- lib/rubydb/monitoring/health.rb
|
|
342
|
+
- lib/rubydb/monitoring/logger.rb
|
|
343
|
+
- lib/rubydb/monitoring/metrics.rb
|
|
344
|
+
- lib/rubydb/monitoring/performance.rb
|
|
345
|
+
- lib/rubydb/monitoring/statistics.rb
|
|
346
|
+
- lib/rubydb/mvcc/garbage_collector.rb
|
|
347
|
+
- lib/rubydb/mvcc/mvcc.rb
|
|
348
|
+
- lib/rubydb/mvcc/snapshot.rb
|
|
349
|
+
- lib/rubydb/mvcc/vacuum.rb
|
|
350
|
+
- lib/rubydb/mvcc/version.rb
|
|
351
|
+
- lib/rubydb/mvcc/version_store.rb
|
|
352
|
+
- lib/rubydb/mvcc/visibility.rb
|
|
353
|
+
- lib/rubydb/protocol/capabilities.rb
|
|
354
|
+
- lib/rubydb/protocol/decoder.rb
|
|
355
|
+
- lib/rubydb/protocol/encoder.rb
|
|
356
|
+
- lib/rubydb/protocol/handshake.rb
|
|
357
|
+
- lib/rubydb/protocol/message.rb
|
|
358
|
+
- lib/rubydb/protocol/protocol.rb
|
|
359
|
+
- lib/rubydb/protocol/version.rb
|
|
360
|
+
- lib/rubydb/rails/adapter.rb
|
|
361
|
+
- lib/rubydb/rails/connection.rb
|
|
362
|
+
- lib/rubydb/rails/database_statements.rb
|
|
363
|
+
- lib/rubydb/rails/migration.rb
|
|
364
|
+
- lib/rubydb/rails/quoting.rb
|
|
365
|
+
- lib/rubydb/rails/result.rb
|
|
366
|
+
- lib/rubydb/rails/schema_statements.rb
|
|
367
|
+
- lib/rubydb/rails/transaction.rb
|
|
368
|
+
- lib/rubydb/rails/type.rb
|
|
369
|
+
- lib/rubydb/recovery/checkpoint.rb
|
|
370
|
+
- lib/rubydb/recovery/consistency.rb
|
|
371
|
+
- lib/rubydb/recovery/corruption_detector.rb
|
|
372
|
+
- lib/rubydb/recovery/crash_recovery.rb
|
|
373
|
+
- lib/rubydb/recovery/recovery_manager.rb
|
|
374
|
+
- lib/rubydb/recovery/redo.rb
|
|
375
|
+
- lib/rubydb/recovery/undo.rb
|
|
376
|
+
- lib/rubydb/replication/failover.rb
|
|
377
|
+
- lib/rubydb/replication/fencing.rb
|
|
378
|
+
- lib/rubydb/replication/primary.rb
|
|
379
|
+
- lib/rubydb/replication/replica.rb
|
|
380
|
+
- lib/rubydb/replication/replication_log.rb
|
|
381
|
+
- lib/rubydb/replication/replication_manager.rb
|
|
382
|
+
- lib/rubydb/replication/replication_slot.rb
|
|
383
|
+
- lib/rubydb/replication/replication_stream.rb
|
|
384
|
+
- lib/rubydb/rubydb.rb
|
|
385
|
+
- lib/rubydb/security/access_control.rb
|
|
386
|
+
- lib/rubydb/security/audit_log.rb
|
|
387
|
+
- lib/rubydb/security/authentication.rb
|
|
388
|
+
- lib/rubydb/security/authorization.rb
|
|
389
|
+
- lib/rubydb/security/credentials.rb
|
|
390
|
+
- lib/rubydb/security/password.rb
|
|
391
|
+
- lib/rubydb/security/permissions.rb
|
|
392
|
+
- lib/rubydb/security/role.rb
|
|
393
|
+
- lib/rubydb/security/user.rb
|
|
394
|
+
- lib/rubydb/server/connection.rb
|
|
395
|
+
- lib/rubydb/server/connection_pool.rb
|
|
396
|
+
- lib/rubydb/server/lifecycle.rb
|
|
397
|
+
- lib/rubydb/server/listener.rb
|
|
398
|
+
- lib/rubydb/server/request_handler.rb
|
|
399
|
+
- lib/rubydb/server/server.rb
|
|
400
|
+
- lib/rubydb/server/session.rb
|
|
401
|
+
- lib/rubydb/server/worker.rb
|
|
402
|
+
- lib/rubydb/server/worker_pool.rb
|
|
403
|
+
- lib/rubydb/sql/ast/alter_table.rb
|
|
404
|
+
- lib/rubydb/sql/ast/begin_transaction.rb
|
|
405
|
+
- lib/rubydb/sql/ast/commit.rb
|
|
406
|
+
- lib/rubydb/sql/ast/constraint.rb
|
|
407
|
+
- lib/rubydb/sql/ast/create_database.rb
|
|
408
|
+
- lib/rubydb/sql/ast/create_index.rb
|
|
409
|
+
- lib/rubydb/sql/ast/create_schema.rb
|
|
410
|
+
- lib/rubydb/sql/ast/create_table.rb
|
|
411
|
+
- lib/rubydb/sql/ast/delete.rb
|
|
412
|
+
- lib/rubydb/sql/ast/drop_database.rb
|
|
413
|
+
- lib/rubydb/sql/ast/drop_index.rb
|
|
414
|
+
- lib/rubydb/sql/ast/drop_schema.rb
|
|
415
|
+
- lib/rubydb/sql/ast/drop_table.rb
|
|
416
|
+
- lib/rubydb/sql/ast/explain.rb
|
|
417
|
+
- lib/rubydb/sql/ast/expression.rb
|
|
418
|
+
- lib/rubydb/sql/ast/insert.rb
|
|
419
|
+
- lib/rubydb/sql/ast/node.rb
|
|
420
|
+
- lib/rubydb/sql/ast/rollback.rb
|
|
421
|
+
- lib/rubydb/sql/ast/savepoint.rb
|
|
422
|
+
- lib/rubydb/sql/ast/select.rb
|
|
423
|
+
- lib/rubydb/sql/ast/set_operation.rb
|
|
424
|
+
- lib/rubydb/sql/ast/trigger.rb
|
|
425
|
+
- lib/rubydb/sql/ast/update.rb
|
|
426
|
+
- lib/rubydb/sql/ast/vacuum.rb
|
|
427
|
+
- lib/rubydb/sql/ast/view.rb
|
|
428
|
+
- lib/rubydb/sql/ast/with.rb
|
|
429
|
+
- lib/rubydb/sql/grammar.rb
|
|
430
|
+
- lib/rubydb/sql/keywords.rb
|
|
431
|
+
- lib/rubydb/sql/lexer.rb
|
|
432
|
+
- lib/rubydb/sql/operators.rb
|
|
433
|
+
- lib/rubydb/sql/parser.rb
|
|
434
|
+
- lib/rubydb/sql/planner/analyzer.rb
|
|
435
|
+
- lib/rubydb/sql/planner/binder.rb
|
|
436
|
+
- lib/rubydb/sql/planner/type_checker.rb
|
|
437
|
+
- lib/rubydb/sql/token.rb
|
|
438
|
+
- lib/rubydb/storage/buffer_frame.rb
|
|
439
|
+
- lib/rubydb/storage/buffer_pool.rb
|
|
440
|
+
- lib/rubydb/storage/database_lock.rb
|
|
441
|
+
- lib/rubydb/storage/deserializer.rb
|
|
442
|
+
- lib/rubydb/storage/engine.rb
|
|
443
|
+
- lib/rubydb/storage/file_manager.rb
|
|
444
|
+
- lib/rubydb/storage/free_space_map.rb
|
|
445
|
+
- lib/rubydb/storage/page.rb
|
|
446
|
+
- lib/rubydb/storage/page_allocator.rb
|
|
447
|
+
- lib/rubydb/storage/page_header.rb
|
|
448
|
+
- lib/rubydb/storage/page_manager.rb
|
|
449
|
+
- lib/rubydb/storage/record.rb
|
|
450
|
+
- lib/rubydb/storage/row.rb
|
|
451
|
+
- lib/rubydb/storage/serializer.rb
|
|
452
|
+
- lib/rubydb/storage/storage_layout.rb
|
|
453
|
+
- lib/rubydb/storage/storage_manager.rb
|
|
454
|
+
- lib/rubydb/storage/tuple.rb
|
|
455
|
+
- lib/rubydb/storage/visibility_map.rb
|
|
456
|
+
- lib/rubydb/transactions/commit_manager.rb
|
|
457
|
+
- lib/rubydb/transactions/isolation.rb
|
|
458
|
+
- lib/rubydb/transactions/lock.rb
|
|
459
|
+
- lib/rubydb/transactions/lock_manager.rb
|
|
460
|
+
- lib/rubydb/transactions/savepoint.rb
|
|
461
|
+
- lib/rubydb/transactions/transaction.rb
|
|
462
|
+
- lib/rubydb/transactions/transaction_id.rb
|
|
463
|
+
- lib/rubydb/transactions/transaction_log.rb
|
|
464
|
+
- lib/rubydb/transactions/transaction_manager.rb
|
|
465
|
+
- lib/rubydb/types/bigint.rb
|
|
466
|
+
- lib/rubydb/types/blob.rb
|
|
467
|
+
- lib/rubydb/types/boolean.rb
|
|
468
|
+
- lib/rubydb/types/date.rb
|
|
469
|
+
- lib/rubydb/types/decimal.rb
|
|
470
|
+
- lib/rubydb/types/float.rb
|
|
471
|
+
- lib/rubydb/types/integer.rb
|
|
472
|
+
- lib/rubydb/types/json.rb
|
|
473
|
+
- lib/rubydb/types/null.rb
|
|
474
|
+
- lib/rubydb/types/smallint.rb
|
|
475
|
+
- lib/rubydb/types/text.rb
|
|
476
|
+
- lib/rubydb/types/time.rb
|
|
477
|
+
- lib/rubydb/types/timestamp.rb
|
|
478
|
+
- lib/rubydb/types/type.rb
|
|
479
|
+
- lib/rubydb/types/uuid.rb
|
|
480
|
+
- lib/rubydb/types/varchar.rb
|
|
481
|
+
- lib/rubydb/version.rb
|
|
482
|
+
- lib/rubydb/wal/archive.rb
|
|
483
|
+
- lib/rubydb/wal/checkpoint.rb
|
|
484
|
+
- lib/rubydb/wal/lsn.rb
|
|
485
|
+
- lib/rubydb/wal/reader.rb
|
|
486
|
+
- lib/rubydb/wal/record.rb
|
|
487
|
+
- lib/rubydb/wal/segment.rb
|
|
488
|
+
- lib/rubydb/wal/wal.rb
|
|
489
|
+
- lib/rubydb/wal/writer.rb
|
|
490
|
+
- packaging/docker/Dockerfile
|
|
491
|
+
- packaging/docker/docker-compose.failover.yml
|
|
492
|
+
- packaging/docker/entrypoint.sh
|
|
493
|
+
- packaging/homebrew/rubydb.rb
|
|
494
|
+
- packaging/systemd/rubydb.service
|
|
495
|
+
- rubydb.gemspec
|
|
496
|
+
- scripts/benchmark
|
|
497
|
+
- scripts/durability_drill
|
|
498
|
+
- scripts/format
|
|
499
|
+
- scripts/fuzz
|
|
500
|
+
- scripts/lint
|
|
501
|
+
- scripts/release
|
|
502
|
+
- scripts/release_check
|
|
503
|
+
- scripts/replication_failover_drill
|
|
504
|
+
- scripts/replication_network_failover_drill
|
|
505
|
+
- scripts/restore_drill
|
|
506
|
+
- scripts/security
|
|
507
|
+
- scripts/setup
|
|
508
|
+
- scripts/test
|
|
509
|
+
- scripts/test-chaos
|
|
510
|
+
- scripts/test-crash
|
|
511
|
+
- scripts/test-integration
|
|
512
|
+
- scripts/test-unit
|
|
513
|
+
- visibility_map.json
|
|
514
|
+
homepage: https://github.com/aldanedev-create/rubydb
|
|
515
|
+
licenses:
|
|
516
|
+
- MIT
|
|
517
|
+
metadata:
|
|
518
|
+
homepage_uri: https://github.com/aldanedev-create/rubydb
|
|
519
|
+
source_code_uri: https://github.com/aldanedev-create/rubydb/tree/main
|
|
520
|
+
changelog_uri: https://github.com/aldanedev-create/rubydb/blob/main/CHANGELOG.md
|
|
521
|
+
rdoc_options: []
|
|
522
|
+
require_paths:
|
|
523
|
+
- lib
|
|
524
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
525
|
+
requirements:
|
|
526
|
+
- - ">="
|
|
527
|
+
- !ruby/object:Gem::Version
|
|
528
|
+
version: 3.3.0
|
|
529
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
530
|
+
requirements:
|
|
531
|
+
- - ">="
|
|
532
|
+
- !ruby/object:Gem::Version
|
|
533
|
+
version: '0'
|
|
534
|
+
requirements: []
|
|
535
|
+
rubygems_version: 4.0.16
|
|
536
|
+
specification_version: 4
|
|
537
|
+
summary: A developer-first relational database for Ruby
|
|
538
|
+
test_files: []
|