Coder Social home page Coder Social logo

cljs-uuid's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cljs-uuid's Issues

duplicate UUID - uuid_generate_v4() / make-random

I have a duplicate UUID key while testing for insertion in a db table.

org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "users_pkey" Detail: Key (id)=(6b540cda-ba85-464e-9c68-72235f1452fa) already exists.

The UUID key above was generated using cljs-uuid.core/make-random. The similar inserted key in the table is the only key in the table. The already inserted UUID was generated with uuid_generate_v4() function from uuid-ossp module in postgresql.

I think this problem problem occurred after upgrading to the latest version of cljs-uuid from an older version of the same library.

Using:
[cljs-uuid "0.0.4"]
Mac OS X 10.6.8

Current version doesn't work with new cljs.core/UUID

Hi Dave,

I needed a random-uuid generator that works with the current clojurescript version.
Your current version didn't work with the updated cljs-version as of 11/27/12...

I took the liberty to copy part of your code to make it work (thanks!):
https://gist.github.com/4159427

As cljs.core/UUID defines a deftype with interface implementations, much of the pr-str and read-string can be left to the cljs.core/UUID implementation.

A random UUID generator for cljs will benefit the cljs-community!

If you will update your version, I'd be happy to use yours in the future.
If not, I will (reluctantly) maintain my version and make it available via github/clojars.

Thank, FrankS.

cljs code should support reading UUIDs printed with pr-str

The Clojure side can read either #<UUID ...> or #uuid "...". The Clojurescript can only read the #uuid "..." syntax.

There should either be a way to print UUIDs on the Clojure side in the cljs-readable syntax OR the Clojurescript side should be able to read both syntaxes.

Wrong number of args (1) passed to UUID

WARNING: Wrong number of args (1) passed to UUID at line 16 file:/Volumes/DataRAID/Users/sean/.m2/repository/cljs-uuid/cljs-uuid/0.0.4/cljs-uuid-0.0.4.jar!/cljs_uuid/core.cljs

I'm using:

[cljs-uuid "0.0.4"]
and
[org.clojure/clojurescript "0.0-3308"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.