Jeremy, Do you recommend just adding a shared/sybase.rb and follow one of those as an example? Do I need to add anything else? Should I add a spec and follow like the mssql one? I'd like to knock this out quickly. My boss will not understand it if I'm working on this for a long time.
GregD On May 20, 2:32 pm, Jeremy Evans <[email protected]> wrote: > On May 20, 9:31 am, GregD <[email protected]> wrote: > > > Update: > > > connected. I had it correct. The DB was really old and was not using > > jconn3. It was a Sybase 9 DB and not a Sybase 11 DB. I really did > > not expect that since most everyone of our DBs are Sybase 11 and a few > > are Sybase 10. This particular DB is about 5 years old and has not > > been upgraded yet. > > > Sorry, about that. > > No problem, glad you got that worked out. > > > As far as a native Sybase adapter, is there any docs out there to help > > in creating one? Could I look at one of the existing adapters like > > DB2 or Oracle? I'm a little cautious on using jruby vs MRI ruby > > because of gem support. > > There aren't any docs on creating adapters, other than a page or two > in my MWRC 2009 presentation. However, the most commonly used > adapters (SQLite, MySQL, PostgreSQL, JDBC) are decently commented, so > I'd recommend just looking at those. Note that you don't actually > need to create an adapter, you actually want to create what's called a > shared adapter in Sequel, which is used to handle syntax specific to a > database type, and also possibly a subadapter of an existing adapter > that pulls in the shared adapter and wires it correctly to the main > adapter. > > For example, the postgres adapter is for when you connect to postgres > using pg, postgres, or postgres-pr. The shared postgres adapter > adapter is used no matter which adapter you use, as long as you are > connecting to PostgreSQL. And there are postgres subadapters for both > the do (DataObjects) and JDBC adapters. Microsoft SQL Server doesn't > have a main adapter, but has a shared adapter and subadapters for > odbc, ado, and JDBC. > > Jeremy > > -- > You received this message because you are subscribed to the Google Groups > "sequel-talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/sequel-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
