Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| import com.google.common.hash.Hashing; | |
| import org.junit.Test; | |
| import java.util.HashMap; | |
| import java.util.LinkedHashSet; | |
| import java.util.Map; | |
| import java.util.Set; | |
| public class HashingTest { | |
| @Test |
| extern crate term; | |
| use std::ops::Add; | |
| fn main() { | |
| test_unsafe(); | |
| } | |
| // ------------- | |
| fn crate_test() { |
| /** | |
| * | |
| * @flow strict | |
| */ | |
| import { | |
| GraphQLEnumType, | |
| GraphQLInterfaceType, | |
| GraphQLObjectType, | |
| GraphQLList, |
| ;/*! showdown v 2.0.0-alpha1 - 19-04-2018 */ | |
| var showdownFn = function(){ | |
| /** | |
| * Created by Tivie on 13-07-2015. | |
| */ | |
| function getDefaultOpts (simple) { | |
| 'use strict'; | |
| var defaultOptions = { |
| package leo.me; | |
| import okhttp3.Call; | |
| import okhttp3.Callback; | |
| import okhttp3.OkHttpClient; | |
| import okhttp3.Protocol; | |
| import okhttp3.Request; | |
| import okhttp3.Response; | |
| import java.io.IOException; |
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| import java.util.TimeZone; | |
| /** | |
| * This is a test indicating the timezone issue for a datebase which is in a timezone which observes | |
| * DST, | |
| * for example, America/Los_Angeles. |
| package leo.me.graphql; | |
| /** | |
| * Created by leo on 4/26/17. | |
| */ | |
| import static graphql.Scalars.GraphQLString; | |
| import static graphql.schema.GraphQLFieldDefinition.newFieldDefinition; | |
| import static graphql.schema.GraphQLList.list; | |
| import static graphql.schema.GraphQLObjectType.newObject; |
| @Test | |
| public void testJavaGeneric() { | |
| // have to use a empty `{ }`, so that the `getClass().getGenericSuperclass()` will return a `ParameterizedType` instance. | |
| List<Integer> list = new LinkedList<Integer>() { | |
| }; | |
| // superclass contains the unerased info. | |
| Type supers = list.getClass().getGenericSuperclass(); | |
| assertTrue(supers instanceof ParameterizedType); | |
| ParameterizedType paramType = (ParameterizedType) supers; |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Spliterator; | |
| import java.util.function.Consumer; | |
| import java.util.stream.IntStream; | |
| import java.util.stream.Stream; |