Module: ActiveRecord::ConnectionAdapters::Duckdb::DatabaseLimits
- Included in:
- ActiveRecord::ConnectionAdapters::DuckdbAdapter
- Defined in:
- lib/active_record/connection_adapters/duckdb/database_limits.rb
Instance Method Summary collapse
-
#index_name_length ⇒ Integer
Returns the maximum length for index names.
-
#max_identifier_length ⇒ Integer
Since DuckDb is PostgreSQL compatible (64-1), we can use the same limits as PostgreSQL.
-
#table_alias_length ⇒ Integer
Returns the maximum length for table aliases.
-
#table_name_length ⇒ Integer
Returns the maximum length for table names.
Instance Method Details
#index_name_length ⇒ Integer
Returns the maximum length for index names
32 33 34 |
# File 'lib/active_record/connection_adapters/duckdb/database_limits.rb', line 32 def index_name_length max_identifier_length end |
#max_identifier_length ⇒ Integer
Since DuckDb is PostgreSQL compatible (64-1), we can use the same limits as PostgreSQL. In the future want to drop possible PostgreSQL compatibility we can change the limits to match whatever limits DuckDB may want to impose www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS Returns the maximum length for database identifiers
14 15 16 |
# File 'lib/active_record/connection_adapters/duckdb/database_limits.rb', line 14 def max_identifier_length 63 end |
#table_alias_length ⇒ Integer
Returns the maximum length for table aliases
20 21 22 |
# File 'lib/active_record/connection_adapters/duckdb/database_limits.rb', line 20 def table_alias_length max_identifier_length end |
#table_name_length ⇒ Integer
Returns the maximum length for table names
26 27 28 |
# File 'lib/active_record/connection_adapters/duckdb/database_limits.rb', line 26 def table_name_length max_identifier_length end |