Re: New associations implementation in the trunk

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/new_associations_implementation_in_the_trunk I've just merged a new association implementation the trunk. It's a very nice implementation by Jeremy Evans that supports the three most common relations: one_to_many, many_to_one and many_to_many, or in

Re: Keeping momentum and moving forward

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/keeping_momentum_and_moving_forward Because of recent changes in my life (I'm out of a job and not yet sure what I'd like to do) my time online is limited and I'm spending a lot of time off the computer (which is actually a blessing - you should try it!) But I'd

Re: sequel_core read_only connection patch

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/sequel_core_read_only_connection_patch Hi all! I'm a newbie of Sequel. I want to use sequel_model on read-only connection to prevent mistaking update on Slave db. Here is a patch. How about this? # Are there anyone try to use sequel_model with Master-Slave?

Re: I#39;m back (almost)

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/i_39_m_back_almost hi everybody sorry for the long absence. my life is a bit hectic right now, and I'm not spending much time online. I'll get back on top of things this weekend, so please bear with me for a couple of days. best sharon

Re: merb_sequel connection error

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/merb_sequel_connection_error nbsp;I get this error with merb_sequel. quot;String can't be coerced into Fixnumquot; I have a postgresql password that is a integer. so I edit merb_sequel-0.9.0\lib\merb\orms\connection.rb line 59 nbsp;like this options[:password] =

Re: Table aliasing from hash should reverse keys and values

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/table_aliasing_from_hash_should_reverse_keys_and_values ** I was about to file this as a bug, but wanted to get some opinions first. Right now, DB[:items =gt; :a, :users =gt; :b] generates: nbsp;SELECT * FROM items a, users b It would be more sensible to reverse it

Re: ANN: sequel_core 1.0.9, sequel_model 0.4.1 released

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/ann_sequel_core_1_0_9_sequel_model_0_4_1_released Hi everybody New versions of sequel_core and sequel_model have just been released. Here are the changes: === sequel_core * New support for full-text searching in mysql, postgres and odbc_mssql adapters. The mysql

Re: Sequel Model Validated

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/sequel_model_validated Hi there, I just spend the last 20 hours putting the validations into a plugin while extending it. It now supports conditional validations, throws exceptions with errors assigned is api compatible to the quot;in-buildquot; validations. Further

Re: conditional filters on a sequel model

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/conditional_filters_on_a_sequel_model Hi guys, I'm having difficulty putting together a basic search facility for a model using Sequel. I thought I could do something like this: class Post lt; Sequel::Model(:posts) end Post.filter do nbsp; if @criteria nbsp;

Re: Advanced Data Types and Casting

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/advanced_data_types_and_casting Hi, I was looking in the documentation and discussions for any info, but couldn't find any. Does Sequel support advanced data types, such as geo-data and arrays? Also, does it support casting from one data type to another? Thanks!

Re: does sequel support quot;byteaquot; postgres type?

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/does_sequel_support_quot_bytea_quot_postgres_type Hello, I would like to store binary data in the PostgreSQL database, using bytea data type. Is this possible with sequel? PostgreSQL docs say that if inserting to bytea, it needs escaping certain characters, the

Re: prepared statements

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/prepared_statements Will there be support for prepared statements in Sequel in the future? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email

Re: Eager Loading

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/eager_loading I've added a file to this group called sequel_eager.rb that contains a minimal association of eager loading. nbsp;Here's an example of how it works: # This will load the dataset for the model, and then load # a dataset for the association, and then

Re: Problem With MySQL Adapter and Models?

2008-03-28 Thread Amanda Byrne
http://wikipedlla.com/problem_with_mysql_adapter_and_models I have a sample app I'm building with a simple entry table: create_table :entries do nbsp; primary_key :id nbsp; text :name nbsp; text :title nbsp; text :summary nbsp; text :content end and another comment table:

Sorry about the spam

2008-03-28 Thread Aman Gupta
New members are now moderated, so it shouldn't happen again. Aman Gupta --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To

Re: Implementing directed graphs

2008-03-28 Thread Aman Gupta
Sequel doesn't do anything special when inserting/saving.. you can add in these behaviors using hooks (http://p.ramaze.net/976): require 'rubygems' require 'sequel' require 'logger' DB = Sequel.sqlite DB.logger = Logger.new $stdout class Animal Sequel::Model(:animals) set_schema do

Re: Implementing directed graphs

2008-03-28 Thread Xavier Lange
Hmm, that's very interesting. I think I'm starting to understand how little magic Sequel uses! Here's a theoretical question about the nature of Dataset instances. If you use set_dataset inside the model and it applies filters shouldn't those filter values be applied when saving a new record?

Re: Implementing directed graphs

2008-03-28 Thread Xavier Lange
To further clarify. shouldn't those filter values be applied when saving a new record? should have been shouldn't those filter values be used as defaults for the fields when instantiating that object? On Mar 28, 3:14 pm, Xavier Lange [EMAIL PROTECTED] wrote: Hmm, that's very interesting. I