testsimpleaccess.java

来自「mysql-5.0.22.tar.gz源码包」· Java 代码 · 共 38 行

JAVA
38
字号
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2002 *	Sleepycat Software.  All rights reserved. * * $Id: TestSimpleAccess.java,v 1.5 2002/08/16 19:35:55 dda Exp $ *//* * Simple test for get/put of specific values. */package com.sleepycat.test;import com.sleepycat.db.*;import java.io.FileNotFoundException;public class TestSimpleAccess{    public static void main(String[] args)    {        try {            Db db = new Db(null, 0);            db.open(null, "my.db", null, Db.DB_BTREE, Db.DB_CREATE, 0644);            TestUtil.populate(db);            System.out.println("finished test");        }        catch (DbException dbe) {            System.err.println("Db Exception: " + dbe);        }        catch (FileNotFoundException fnfe) {            System.err.println("FileNotFoundException: " + fnfe);        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?