2010-12-20 2 views

답변

2

가장 쉬운 방법은 HSQLDB가 자바 데이터베이스이므로 JRuby를 사용하는 것입니다.

그렇지 않으면, http://www.infoq.com/news/ruby-driver-hsqldbhttp://rubyforge.org/projects/hypersonic/

가 비슷하기 때문에 또한, 대신 HSQLDB의 SQLite는 좀보고 할 수 있습니다를 시도하지만, SQLite는 자바로 작성되지 않습니다.

With the default page size of 1024 bytes, an SQLite database is limited in size to 2 terabytes (2^41 bytes). And even if it could handle larger databases, SQLite stores the entire database in a single disk file and many filesystems limit the maximum size of files to something less than this. So if you are contemplating databases of this magnitude, you would do well to consider using a client/server database engine that spreads its content across multiple disk files, and perhaps across multiple volumes.

http://www.sqlite.org/whentouse.html에서 그것은 귀하의 요구 스위트 것입니다 있는지 확인하기 위해 해당 페이지의 나머지 부분을 읽어보십시오.

다른 두 페이지 유용한 찾을 수 있습니다 :
http://www.sqlite.org/faq.html
http://www.sqlite.org/mostdeployed.html

+0

답장을 보내 주셔서 감사합니다. 그러나 저축 저장을위한 데이터베이스를 만들고 싶습니다. u는 데이터 저장을위한 sqlite의 최대 용량을 알려줄 수 있습니다. & hsqldb와 sqlite 사이의 용량 차이 – Pranoti

+0

SQLite에 대한 몇 가지 세부 정보로 내 대답을 업데이트했습니다. 자세한 정보는 웹 사이트를 참조하십시오. – Wodin

+0

정말 고맙습니다. & 확실하게 제가 그것을 통과 할 것입니다 – Pranoti

0

당신이 JRuby를 사용중인 경우 :

1- here에서 HSQLDB 드라이버를 다운로드에 오직 hsqldb.jar를 추가하려면/프로젝트의 config/database.yml 파일에서 lib에

2 :

... 
development: 
    database: db_name 
    adapter: jdbc 
    driver: org.hsqldb.jdbc.JDBCDriver 
    schema: K12_EDUCATION 
    url: jdbc:hsqldb:file:./db_files/db_name 
관련 문제