activerecord-cockroachdb-adapter
CockroachDB adapter for ActiveRecord.
File Explorer
Download Latest Version (.zip)- action.yml
- migrations.rb
- models_and_database.rb
- ci.yml
- docker.yml
- flaky.yml
- issue_template.md
- default.rb
- schemas.rb
- console
- minitest_bisect
- setup
- start-cockroachdb
- config.teamcity.yml
- Dockerfile
- local-test.sh
- teamcity-test.sh
- date_time.rb
- interval.rb
- spatial.rb
- arel_tosql.rb
- attribute_methods.rb
- column.rb
- column_methods.rb
- database_statements.rb
- database_tasks.rb
- quoting.rb
- referential_integrity.rb
- schema_creation.rb
- schema_dumper.rb
- schema_statements.rb
- setup.rb
- table_definition.rb
- transaction_manager.rb
- type.rb
- cockroachdb_adapter.rb
- compatibility.rb
- query_methods_ext.rb
- join_source_ext.rb
- activerecord-cockroachdb-adapter.rb
- version.rb
- cached_plan_failure_test.rb
- referential_integrity_test.rb
- active_schema_test.rb
- change_schema_test.rb
- connection_test.rb
- ddl_test.rb
- interval_test.rb
- nested_class_test.rb
- numeric_test.rb
- postgis_test.rb
- postgresql_adapter_test.rb
- quoting_test.rb
- schema_statements_test.rb
- serial_test.rb
- spatial_queries_test.rb
- spatial_setup_test.rb
- spatial_type_test.rb
- timestamp_test.rb
- virtual_column_test.rb
- eager_load_nested_include_test.rb
- left_outer_join_association_test.rb
- type_test.rb
- resolver_test.rb
- change_schema_test.rb
- check_constraint_test.rb
- columns_test.rb
- create_join_table_test.rb
- foreign_key_test.rb
- hidden_column_test.rb
- references_foreign_key_test.rb
- aost_test.rb
- or_test.rb
- table_hints_test.rb
- cockroachdb_rake_test.rb
- adapter_test.rb
- associations_test.rb
- base_test.rb
- comment_test.rb
- defaults_test.rb
- dirty_test.rb
- fixtures_test.rb
- helper_cockroachdb.rb
- inheritance_test.rb
- invertible_migration_test.rb
- marshal_serialization_test.rb
- migration_test.rb
- persistence_test.rb
- primary_keys_test.rb
- relation_test.rb
- relations_test.rb
- schema_dumper_test.rb
- show_create_test.rb
- strict_loading_test.rb
- test_fixtures_test.rb
- transactions_test.rb
- unsafe_raw_sql_test.rb
- ResolverTest.rb
- BindParameterTest.rb
- QuotingTest.rb
- PostgreSQLAdapterPreventWritesLegacyTest.rb
- PostgreSQLAdapterPreventWritesTest.rb
- PostgreSQLAdapterTest.rb
- RegistrationIsolatedTest.rb
- EncryptionPerformanceTest.rb
- EnvelopeEncryptionPerformanceTest.rb
- ExtendedDeterministicQueriesPerformanceTest.rb
- StoragePerformanceTest.rb
- ChangeSchemaTest.rb
- CheckConstraintTest.rb
- ColumnsTest.rb
- CompatibilityTest.rb
- CompositeForeignKeyTest.rb
- CreateJoinTableTest.rb
- ForeignKeyInCreateTest.rb
- ForeignKeyTest.rb
- InvalidOptionsTest.rb
- PGChangeSchemaTest.rb
- ReferencesForeignKeyTest.rb
- ReferencesIndexTest.rb
- ReferencesStatementsTest.rb
- AdapterTest.rb
- AdapterTestWithoutTransaction.rb
- InstrumentationTest.rb
- InvertibleMigrationTest.rb
- MysqlDBCreateWithInvalidPermissionsTest.rb
- OrTest.rb
- PostgresqlConnectionTest.rb
- PostgreSQLStructureDumpTest.rb
- PostgresqlTransactionNestedTest.rb
- PostgresqlTransactionTest.rb
- RelationTest.rb
- TooManyOrTest.rb
- fix_backtrace_cleaner.rb
- NotifyModeTest.rb
- RaiseBacktraceModeTest.rb
- RaiseModeTest.rb
- WarnBacktraceModeTest.rb
- WarnModeTest.rb
- V4_2.rb
- V5_0.rb
- CollidedSequenceNameTest.rb
- LongerSequenceNameDetectionTest.rb
- ActiveSupportSubclassWithFixturesTest.rb
- BasicsTest.rb
- BulkAlterTableMigrationsTest.rb
- CalculationsTest.rb
- CommentTest.rb
- CoreTest.rb
- CreateOrFindByWithinTransactions.rb
- DefaultsUsingMultipleSchemasAndDomainTest.rb
- DirtyTest.rb
- EachTest.rb
- EagerLoadPolyAssocsTest.rb
- ExplicitlyNamedIndexMigrationTest.rb
- FixturesResetPkSequenceTest.rb
- FixturesTest.rb
- FixturesWithForeignKeyViolationsTest.rb
- ForeignTableTest.rb
- InheritanceComputeTypeTest.rb
- LeftOuterJoinAssociationTest.rb
- MarshalSerializationTest.rb
- MaterializedViewTest.rb
- MigrationTest.rb
- MultiDbMigratorTest.rb
- NestedRelationScopingTest.rb
- OrTest.rb
- PersistenceTest.rb
- PessimisticLockingTest.rb
- PostgresqlArrayTest.rb
- PostgresqlBigSerialTest.rb
- PostgresqlBitStringTest.rb
- PostgresqlByteaTest.rb
- PostgresqlCitextTest.rb
- PostgresqlCollationTest.rb
- PostgresqlCompositeTest.rb
- PostgresqlCompositeWithCustomOIDTest.rb
- PostgresqlDataTypeTest.rb
- PostgresqlDefaultExpressionTest.rb
- PostgresqlDeferredConstraintsTest.rb
- PostgresqlDomainTest.rb
- PostgreSQLExplainTest.rb
- PostgresqlExtensionMigrationTest.rb
- PostgresqlFullTextTest.rb
- PostgreSQLGeometricLineTest.rb
- PostgresqlGeometricTest.rb
- PostgreSQLGeometricTypesTest.rb
- PostgresqlHstoreTest.rb
- PostgresqlInfinityTest.rb
- PostgresqlIntervalTest.rb
- PostgresqlJSONBTest.rb
- PostgresqlJSONTest.rb
- PostgresqlLtreeTest.rb
- PostgresqlMoneyTest.rb
- PostgresqlNetworkTest.rb
- PostgresqlNumberTest.rb
- PostgreSQLPartitionsTest.rb
- PostgresqlPointTest.rb
- PostgresqlRangeTest.rb
- PostgreSQLReferentialIntegrityTest.rb
- PostgresqlRenameTableTest.rb
- PostgresqlSerialTest.rb
- PostgresqlTimestampFixtureTest.rb
- PostgresqlTimestampMigrationTest.rb
- PostgresqlTypeLookupTest.rb
- PostgresqlUUIDGenerationTest.rb
- PostgresqlUUIDTest.rb
- PostgresqlVirtualColumnTest.rb
- PostgresqlXMLTest.rb
- PrimaryKeyIntegerNilDefaultTest.rb
- PrimaryKeyIntegerTest.rb
- PrimaryKeysTest.rb
- QueryCacheExpiryTest.rb
- RelationMergingTest.rb
- RelationTest.rb
- ReservedWordsMigrationTest.rb
- SameNameDifferentDatabaseFixturesTest.rb
- SanitizeTest.rb
- SchemaAuthorizationTest.rb
- SchemaCreateTableOptionsTest.rb
- SchemaDumperDefaultsTest.rb
- SchemaDumperTest.rb
- SchemaForeignKeyTest.rb
- SchemaIndexNullsOrderTest.rb
- SchemaIndexOpclassTest.rb
- SchemaTest.rb
- StrictLoadingFixturesTest.rb
- TestFixturesTest.rb
- TransactionInstrumentationTest.rb
- TransactionIsolationTest.rb
- TypeTest.rb
- UniquenessValidationTest.rb
- UnloggedTablesTest.rb
- UnsafeRawSqlTest.rb
- UpdateableViewTest.rb
- WithAnnotationsTest.rb
- building.rb
- spatial_model.rb
- cockroachdb_specific_schema.rb
- copy_cat.rb
- exclude_from_transactional_tests.rb
- paths_cockroachdb.rb
- rake_helpers.rb
- sql_logger.rb
- template_creator.rb
- config.yml
- .editorconfig
- .gitignore
- .gitmodules
- activerecord-cockroachdb-adapter.gemspec
- CHANGELOG.md
- CONTRIBUTING.md
- docker.sh
- Gemfile
- LICENSE
- Rakefile
- README.md
- setup.sql
# Installation Guide
1. Get the code
git clone https://github.com/cockroachdb/activerecord-cockroachdb-adapter
Downloads the entire project code from GitHub to your computer.
cd activerecord-cockroachdb-adapter
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Ruby Ruby is required to use gem.
gem install rgeo
Installs the package published on RubyGems directly.
gem install rgeo -- --with-geos-dir=/path/to/cockroach/lib/
Installs the package published on RubyGems directly.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Docker
EasyPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -f build/Dockerfile -t activerecord-cockroachdb-adapter .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 activerecord-cockroachdb-adapter
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
4. Ruby
EasyPrerequisites
bundle install
Installs the Ruby libraries listed in the Gemfile.
If bundle install finishes without errors, continue with the run command from the README (e.g. rails server).
// repository documentation
Was this content helpful?
(0 ratings)
