|
You are here |
janko.io | ||
| | | | |
pganalyze.com
|
|
| | | | | Learn how to create and implement a row level security policy in Rails, allowing to limit the database rows a user can access. | |
| | | | |
blog.arkency.com
|
|
| | | | | ||
| | | | |
tenderlovemaking.com
|
|
| | | | | File.open('somefile.txt', 'wb') do |fh| # Open the file fh.write "hello world" # Do some work with the file end # Close file when block returns ActiveRecord::Base.establish_connection( :adapter => "sqlite", :database => "path/to/dbfile") connection_handle = ActiveRecord::Base.connection def retrieve_connection_pool(klass) pool = @connection_pools[klass.name] return pool if pool return nil if ActiveRecord::Base == klass retrieve_connection_pool klass.superclass end spec = ActiveRecord::Base.specificiation ActiveRecord::ConnectionPool.open(spec) do |conn| ... end spec = database_a ActiveRecord::ConnectionPool.open(spec) do |conn| User.find_all end spec = database_b ActiveRecord::ConnectionPool.open(spec) do |conn| User.find_all end # Retrieve the connection as... | |
| | | | |
fresk.digital
|
|
| | | [AI summary] An expert review identified key pain points in NOC*NSF's digital platform, leading to improvements in stability, usability, and functionality to enhance user experience and business growth. | ||